Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Haewonny authored Feb 11, 2024
1 parent 8b22b86 commit 7d122ac
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ jobs:
run: |
cd ./src/main/resources
touch ./keystore.p12
echo "${{ secrets.KEYSTORE }}" | base64 -d > ./keystore.p12
echo "${{ secrets.KEYSTORE }}" | base64 -d > ./keystore.p12
- name: Set up environment
run: |
echo "${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}" > credentials.json
env:
GOOGLE_APPLICATION_CREDENTIALS: ./credentials.json
- name: Grant execute permission for gradlew
run: chmod +x gradlew

Expand All @@ -108,7 +113,8 @@ jobs:
docker pull ${{ secrets.DOCKER_USERNAME }}/hearo:latest
docker stop $(docker ps -a -q)
docker run -d --log-driver=syslog -p 8080:8080 \
-e GOOGLE_APPLICATION_CREDENTIALS="${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}" \
-e GOOGLE_APPLICATION_CREDENTIALS=/tmp/keys/credentials.json \
-v $GOOGLE_APPLICATION_CREDENTIALS:/tmp/keys/credentials.json:ro \
${{ secrets.DOCKER_USERNAME }}/hearo:latest
docker rm $(docker ps --filter 'status=exited' -a -q)
docker image prune -a -f
Expand Down

0 comments on commit 7d122ac

Please sign in to comment.