Skip to content

Commit

Permalink
Merge pull request #1331 from memphisdev/valeraBr-patch-2
Browse files Browse the repository at this point in the history
Update push_to_registry.yml
  • Loading branch information
valeraBr authored Sep 20, 2023
2 parents bff401f + efba892 commit f92e5af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/push_to_registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ jobs:
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
run: |
echo "PULL_NUMBER=$(echo "$GITHUB_REF" | awk -F / '{print $3}')" >> $GITHUB_ENV
echo "PULL_NUMBER=$(echo "$GITHUB_REF" | awk -F / '{print $3}')"
shell: bash
- name: Build and push
uses: docker/build-push-action@v5
Expand All @@ -33,4 +35,4 @@ jobs:
push: true
tags: |
memphisos/memphis-qa:${{ github.ref_name}}
memphisos/memphis-qa:${{ PULL_NUMBER }}
memphisos/memphis-qa:${{ env.PULL_NUMBER }}

0 comments on commit f92e5af

Please sign in to comment.