From 00cd4750fbf287cb22920e14766edc200dcb41cf Mon Sep 17 00:00:00 2001 From: NejcZdovc Date: Mon, 7 Dec 2020 10:05:13 +0100 Subject: [PATCH] Adds docker tag comment in the PR Resolves #25 --- .github/workflows/deploy.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d520936bbf7e4..b72573877f17d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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) }} @@ -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}}