Skip to content

Commit

Permalink
fix: docker-compose.yml 로그 찍어보기
Browse files Browse the repository at this point in the history
  • Loading branch information
Zepelown authored Dec 2, 2024
1 parent a5e6f3e commit 8724999
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,22 @@ jobs:
sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPOSITORY }}
# Create .env file in the correct directory
echo "SPRING_DATASOURCE_URL=${{ secrets.SPRING_DATASOURCE_URL }}" > ~/wabi/.env
echo "SPRING_DATASOURCE_USERNAME=${{ secrets.SPRING_DATASOURCE_USERNAME }}" >> ~/wabi/.env
echo "SPRING_DATASOURCE_PASSWORD=${{ secrets.SPRING_DATASOURCE_PASSWORD }}" >> ~/wabi/.env
echo "JWT_KEY=${{ secrets.JWT_KEY }}" >> ~/wabi/.env
echo "JWT_EXPIRATION_HOURS=${{ secrets.JWT_EXPIRATION_HOURS }}" >> ~/wabi/.env
echo "JWT_ISSUER=${{ secrets.JWT_ISSUER }}" >> ~/wabi/.env
echo "DOCKERHUB_USERNAME=${{ secrets.DOCKERHUB_USERNAME }}" >> ~/wabi/.env
echo "DOCKERHUB_REPOSITORY=${{ secrets.DOCKERHUB_REPOSITORY }}" >> ~/wabi/.env
echo "SPRING_DATASOURCE_URL=${{ secrets.SPRING_DATASOURCE_URL }}" > .env
echo "SPRING_DATASOURCE_USERNAME=${{ secrets.SPRING_DATASOURCE_USERNAME }}" >> .env
echo "SPRING_DATASOURCE_PASSWORD=${{ secrets.SPRING_DATASOURCE_PASSWORD }}" >> .env
echo "JWT_KEY=${{ secrets.JWT_KEY }}" >> .env
echo "JWT_EXPIRATION_HOURS=${{ secrets.JWT_EXPIRATION_HOURS }}" >> .env
echo "JWT_ISSUER=${{ secrets.JWT_ISSUER }}" >> .env
echo "DOCKERHUB_USERNAME=${{ secrets.DOCKERHUB_USERNAME }}" >> .env
echo "DOCKERHUB_REPOSITORY=${{ secrets.DOCKERHUB_REPOSITORY }}" >>
# Navigate to the correct directory for docker-compose
cd ~/wabi
# Bring down any existing containers before bringing up new ones
sudo docker-compose down
sudo docker-compose up -d
if [ -f "docker-compose.yml" ]; then
sudo docker-compose down
sudo docker-compose up -d
else
echo "docker-compose.yml not found in the current directory."
exit 1
fi

0 comments on commit 8724999

Please sign in to comment.