Skip to content

Commit

Permalink
refactor: 도커 이미지 태깅
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
LeeHanEum and coderabbitai[bot] authored Nov 16, 2024
1 parent f2df252 commit 05a79aa
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/dev-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,17 @@ jobs:

# Docker 이미지 빌드
- name: Docker image build
run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/aics-api:latest .
env:
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/aics-api:$IMAGE_TAG .
docker tag ${{ secrets.DOCKERHUB_USERNAME }}/aics-api:$IMAGE_TAG ${{ secrets.DOCKERHUB_USERNAME }}/aics-api:latest
# Docker Hub 이미지 푸시
- name: docker Hub push
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/aics-api:latest
run: |
docker push ${{ secrets.DOCKERHUB_USERNAME }}/aics-api:$IMAGE_TAG
docker push ${{ secrets.DOCKERHUB_USERNAME }}/aics-api:latest
deploy-to-dev:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 05a79aa

Please sign in to comment.