Skip to content

Commit

Permalink
another
Browse files Browse the repository at this point in the history
  • Loading branch information
s0up4200 committed Apr 10, 2023
1 parent 2f0acc6 commit 72425c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ jobs:
- name: Set DOCKER_TAG variable
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
echo "DOCKER_TAG=pr-${{ github.event.number }}" >> $GITHUB_ENV
echo "DOCKER_TAG=pr_${{ github.event.number }}" >> $GITHUB_ENV
else
echo "DOCKER_TAG=$(echo ${{ github.ref }} | sed 's/refs\/tags\///')" >> $GITHUB_ENV
DOCKER_TAG=$(echo "${{ github.ref }}" | sed 's/refs\/tags\///' | tr "[:upper:]" "[:lower:]" | tr -c "[:alnum:]-." "_")
echo "DOCKER_TAG=${DOCKER_TAG}" >> $GITHUB_ENV
fi
- name: Build Docker image
Expand Down

0 comments on commit 72425c9

Please sign in to comment.