Skip to content

Commit

Permalink
chore: docker compose v2에 맞게 명령어 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
seohyun-lee committed Aug 19, 2024
1 parent 9160479 commit 4df9687
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
cd ./src/main/resources
touch ./application.yml
echo "${{ secrets.APPLICATION_PROD }}" > ./application.yml
- name: Gradle Caching
uses: actions/cache@v3
with:
Expand All @@ -31,12 +31,12 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: |
chmod +x ./gradlew
./gradlew build -x test
- name: Login to DockerHub
uses: docker/login-action@v3
with:
Expand All @@ -61,6 +61,6 @@ jobs:
script: |
echo "${{ secrets.DOCKER_COMPOSE_PROD }}" | sudo tee ./docker-compose.yml
sudo docker ps -q | xargs -r sudo docker stop && sudo docker ps -aq | xargs -r sudo docker rm
sudo docker-compose -f ./docker-compose.yml down --rmi all
sudo docker compose --file ./docker-compose.yml down --rmi all
sudo docker pull ${{ secrets.DOCKER_REPO }}:latest
sudo docker-compose -f ./docker-compose.yml up -d
sudo docker compose --file ./docker-compose.yml up -d

0 comments on commit 4df9687

Please sign in to comment.