Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
saturna committed May 28, 2023
1 parent 3424ac3 commit 3cac9a0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/dockerhub-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
release:
types: [published]

env:
IS_RELEASE: ${{github.event_name == 'release'}}

jobs:
docker-publish:
runs-on: ubuntu-latest
Expand All @@ -25,11 +28,11 @@ jobs:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Compute tags
# if: github.event_name == 'release'
run: echo "TAG_VERSION=$(release='${{github.event_name}}' && echo ${release:1})" >> $GITHUB_ENV
if: vars.IS_RELEASE
run: echo "TAG_VERSION=$(release='${{github.event.release.tag_name}}' && echo ${release:1})" >> $GITHUB_ENV
-
name: Print tags
run: echo ${{ (github.event_name == 'release' && format('gruxer/prism:{0},gruxer/prism:latest', github.event.release.tag_name)) || env.TAG_VERSION }}
run: echo ${{(vars.IS_RELEASE && format('gruxer/prism:{0},gruxer/prism:latest', env.TAG_VERSION)) || 'gruxer/prism:master' }}
# -
# name: Build and Push
# uses: docker/build-push-action@v4
Expand Down

0 comments on commit 3cac9a0

Please sign in to comment.