Skip to content

Commit

Permalink
feat: add latest tags
Browse files Browse the repository at this point in the history
  • Loading branch information
pipech committed Nov 21, 2023
1 parent 17baea8 commit 8783012
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/push-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ jobs:
- name: Check HTTP Response
run: |
response=$(curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:8000)
if [ "$response" -ne 200 ]; then
if [ "$response" == 200 ]; then
echo "Received a 200 response!"
else
echo "Failed to receive a 200 response, got: $response"
exit 1
fi
Expand All @@ -77,4 +79,4 @@ jobs:
with:
context: .
push: true
tags: ${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_VERSION_TAG }}
tags: ${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_VERSION_TAG }},${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:${{ matrix.app_branch }}-latest

0 comments on commit 8783012

Please sign in to comment.