From 8783012a2b151b82364f26c9d2e9efe15783ba6f Mon Sep 17 00:00:00 2001 From: Poranut Chollavorn Date: Tue, 21 Nov 2023 23:23:51 +0700 Subject: [PATCH] feat: add latest tags --- .github/workflows/push-docker.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push-docker.yml b/.github/workflows/push-docker.yml index 745ae21..9e19894 100644 --- a/.github/workflows/push-docker.yml +++ b/.github/workflows/push-docker.yml @@ -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 @@ -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