Skip to content

Commit

Permalink
Adds docker tag comment in the PR
Browse files Browse the repository at this point in the history
Resolves #25
  • Loading branch information
NejcZdovc committed Apr 16, 2021
1 parent d60f13b commit a60fc38
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
pull_request:
branches: [ main ]

env:
DOCKER_TAG: |
superset-${{ github.event.pull_request.head.ref }}-${{ github.event.pull_request.head.sha }}
jobs:
deploy:
if: ${{ github.event_name != 'pull_request' || (github.event_name == 'pull_request' && !github.event.pull_request.draft) }}
Expand Down Expand Up @@ -35,7 +39,10 @@ jobs:
push: true
build-args: |
NPM_BUILD_CMD=build
tags: |
blotoutlabs/blotout:superset-${{ github.event.pull_request.head.ref }}-${{ github.event.pull_request.head.sha }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
tags: blotoutlabs/blotout:${{ env.DOCKER_TAG }}
- name: Comment
uses: NejcZdovc/comment-pr@v1
with:
message: "Docker tag: `${{ env.DOCKER_TAG }}`"
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit a60fc38

Please sign in to comment.