From e25f5e0d66086f1e5e73bdae46d7c398fef0a586 Mon Sep 17 00:00:00 2001 From: Valera Bronshtein <105710429+valeraBr@users.noreply.github.com> Date: Wed, 20 Sep 2023 14:40:11 +0300 Subject: [PATCH] Update push_to_registry.yml --- .github/workflows/push_to_registry.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push_to_registry.yml b/.github/workflows/push_to_registry.yml index 6df29cae6..42dfa8ae9 100644 --- a/.github/workflows/push_to_registry.yml +++ b/.github/workflows/push_to_registry.yml @@ -20,10 +20,15 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Get Pull Request Number + run: echo "PULL_NUMBER=$(echo "$GITHUB_REF" | awk -F / '{print $3}')" >> $GITHUB_ENV + shell: bash - name: Build and push uses: docker/build-push-action@v5 with: context: . platforms: linux/amd64,linux/arm64 push: true - tags: memphisos/memphis-qa:${{ github.ref_name}} + tags: | + memphisos/memphis-qa:${{ github.ref_name}} + memphisos/memphis-qa:${{ env.PULL_NUMBER }}