Skip to content

Commit

Permalink
fix: dummy checksum instead of empty checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmin17 committed Nov 24, 2023
1 parent c18e3e0 commit 25013dd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/docker_build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
if docker run --rm "${{ secrets.DOCKER_USERNAME }}/haengsha-backend:latest" cat /app_checksum.txt > container_checksum.txt; then
echo "Checksum file retrieved successfully."
else
echo "Checksum file not found in Docker image. Create an empty file."
touch code_checksum.txt
echo "Checksum file not found in Docker image. Create a dummy checksum file."
echo "dummychecksum" > filename.txt
if ! cmp -s code_checksum.txt container_checksum.txt; then
echo "Checksums do not match, proceed with build and pull."
Expand All @@ -47,7 +47,6 @@ jobs:
docker rmi "${{ secrets.DOCKER_USERNAME }}/haengsha-backend:latest"
docker pull "${{ secrets.DOCKER_USERNAME }}/haengsha-backend:latest"
docker run -d --name haeng -p 8080:8000 --env-file haengsha-env/.env "${{ secrets.DOCKER_USERNAME }}/haengsha-backend:latest"
EOF
EOF
else
echo "Checksums match, no need to build."
echo "Checksums match, no need to build."

0 comments on commit 25013dd

Please sign in to comment.