Skip to content

Commit

Permalink
build: action 스크립트에 credentials 환경변수 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
pminsung12 committed Sep 5, 2024
1 parent 2f6c29c commit 0bf9742
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/dev-build-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ jobs:
-p 3100:3100 \
-e SPRING_PROFILES_ACTIVE=dev \
-e SPRING_JPA_HIBERNATE_DDL_AUTO=validate \
-e SPRING_CREDENTIALS_ACCESS_KEY=${{secrets.AWS_S3_ACCESS_KEY}} \
-e SPRING_CREDENTIALS_SECRET_KEY=${{secrets.AWS_S3_SECRET_KEY}} \
-e TZ=Asia/Seoul \
${{ secrets.DOCKERHUB_USERNAME }}/spot-server:dev-${{ github.sha }}
docker system prune -af
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/manual-prod-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
-p 3100:3100 \
-e SPRING_PROFILES_ACTIVE=prod \
-e SPRING_JPA_HIBERNATE_DDL_AUTO=validate \
-e SPRING_CREDENTIALS_ACCESS_KEY=${{secrets.AWS_S3_ACCESS_KEY}} \
-e SPRING_CREDENTIALS_SECRET_KEY=${{secrets.AWS_S3_SECRET_KEY}} \
-e TZ=Asia/Seoul \
${{ secrets.DOCKERHUB_USERNAME }}/spot-server:prod-${{ github.event.inputs.tag }}
docker system prune -af

0 comments on commit 0bf9742

Please sign in to comment.