Skip to content

Commit

Permalink
Merge pull request #23 from mark-cos/cicd
Browse files Browse the repository at this point in the history
Cicd
  • Loading branch information
dev-HongCheol authored Feb 13, 2024
2 parents e2eff05 + 3fd533f commit a9a99aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
cp -R ${{ github.workspace }}/Dockerfile ${{ vars.DOCKER_BUILD_PATH }}/
cp -R ${{ github.workspace }}/.next/* ${{ vars.DOCKER_BUILD_PATH }}/
cp -R ${{ github.workspace }}/.env ${{ vars.DOCKER_BUILD_PATH }}/
mv ${{ vars.DOCKER_BUILD_PATH }}/static ${{ vars.DOCKER_BUILD_PATH }}/standalone/
mv ${{ vars.DOCKER_BUILD_PATH }}/static ${{ vars.DOCKER_BUILD_PATH }}/standalone/.next/
- name: Log in to the Container registry
uses: docker/login-action@v3
Expand Down Expand Up @@ -136,6 +136,6 @@ jobs:
script: |
docker stop todo-frontend
docker rm todo-frontend
docker pull ghcr.io/${{ github.repository }}:main
docker run -d -p 13000:3000 --name todo-frontend ghcr.io/${{ github.repository }}:main
docker pull ghcr.io/${{ github.repository }}:cicd
docker run -d -p 13000:3000 --name todo-frontend ghcr.io/${{ github.repository }}:cicd
docker image prune -f
2 changes: 1 addition & 1 deletion .github/workflows/build-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
cp -R ${{ github.workspace }}/Dockerfile ${{ vars.DOCKER_BUILD_PATH }}/
cp -R ${{ github.workspace }}/.next/* ${{ vars.DOCKER_BUILD_PATH }}/
cp -R ${{ github.workspace }}/.env ${{ vars.DOCKER_BUILD_PATH }}/
mv ${{ vars.DOCKER_BUILD_PATH }}/static ${{ vars.DOCKER_BUILD_PATH }}/standalone/
mv ${{ vars.DOCKER_BUILD_PATH }}/static ${{ vars.DOCKER_BUILD_PATH }}/standalone/.next/
- name: Log in to the Container registry
uses: docker/login-action@v3
Expand Down

0 comments on commit a9a99aa

Please sign in to comment.