Skip to content

Commit

Permalink
cicd : git actions ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboysj committed Nov 13, 2024
1 parent 8b36bbc commit 8c3bc95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
id: metadata
uses: docker/metadata-action@v4
with:
images: ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKERHUB_IMAGE_NAME }}
images: ${{ secrets.DOCKER_USERNAME }}/shoot:latest
tags: |
type=sha,prefix=
type=ref,event=branch
Expand All @@ -67,7 +67,7 @@ jobs:
port: 22
script: |
cd /home/ubuntu
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKERHUB_IMAGE_NAME }}:${{ github.sha }}
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/shoot:latest
docker-compose down
docker-compose build --no-cache
docker-compose up -d --force-recreate
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/amd64 openjdk:17-jdk-alpine
FROM openjdk:17-jdk-alpine
WORKDIR /app
COPY build/libs/*.jar app.jar
ENTRYPOINT ["java", "-jar", "app.jar"]
Expand Down

0 comments on commit 8c3bc95

Please sign in to comment.