Skip to content

Commit

Permalink
Update github-actions.yml
Browse files Browse the repository at this point in the history
- Gradlew 실행 허용 코드 추가
  • Loading branch information
seohyun-lee authored Feb 8, 2024
1 parent ebd8bee commit f9079b7
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ on:
branches: [ "develop/main" ]

env:
GITHUB_SHA: ${{ github.sha }}
PROJECT_ID: ${{secrets.PROJECT_ID}}
GCE_INSTANCE: ${{secrets.GCE_INSTANCE}}
GCE_INSTANCE_ZONE: ${{secrets.GCE_INSTANCE_ZONE}}


jobs:
setup-build-publish-deploy:
name: Setup, Build, Publish, and Deploy
Expand All @@ -23,6 +25,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

# Gradlew 실행 허용
- name: Run chmod to make gradlew executable
run: |
chmod +x ./withmate/gradlew
# JDK 17 세팅
- name: Set up JDK 17
uses: actions/setup-java@v4
Expand Down Expand Up @@ -69,9 +76,3 @@ jobs:
gcloud compute instances update-container "$GCE_INSTANCE" \
--zone "$GCE_INSTANCE_ZONE" \
--container-image "gcr.io/$PROJECT_ID/$GCE_INSTANCE-image:$GITHUB_SHA"
env:
GITHUB_SHA: ${{ github.sha }}
PROJECT_ID: ${{ secrets.PROJECT_ID }}
GCE_INSTANCE: ${{ secrets.GCE_INSTANCE }}
GCE_INSTANCE_ZONE: ${{ secrets.GCE_INSTANCE_ZONE }}

0 comments on commit f9079b7

Please sign in to comment.