Skip to content

Commit

Permalink
feat: docker 태그추가 (latest,github.sha)
Browse files Browse the repository at this point in the history
  • Loading branch information
masiljangajji committed Oct 23, 2024
1 parent df5c5a0 commit 5ac2953
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ jobs:
with:
push: true
platforms: linux/arm64
tags: masiljangajji/front-app:${{ github.sha }}
tags: |
masiljangajji/front-app:latest
masiljangajji/front-app:${{ github.sha }}
- name: Zip artifact for CodeDeploy
run: |
Expand Down
2 changes: 1 addition & 1 deletion scripts/start_docker.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

# 새로운 컨테이너 실행
docker run -d --name front-app -p 80:3000 masiljangajji/front-app:$GITHUB_SHA
docker run -d --name front-app -p 80:3000 masiljangajji/front-app:latest

0 comments on commit 5ac2953

Please sign in to comment.