From e1edbfbc96f8766e18a31d84bdb6d145494ba027 Mon Sep 17 00:00:00 2001 From: hmiao <739025250@qq.com> Date: Mon, 17 Jan 2022 19:02:40 +0800 Subject: [PATCH] add gitref in docker-build-dev --- .github/workflows/docker-build-dev.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-build-dev.yml b/.github/workflows/docker-build-dev.yml index 867ece2..37476bf 100644 --- a/.github/workflows/docker-build-dev.yml +++ b/.github/workflows/docker-build-dev.yml @@ -16,6 +16,12 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: + id: vars + shell: bash + run: | + echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + - name: Login to DockerHub if: github.event_name != 'pull_request' uses: docker/login-action@v1 @@ -28,4 +34,4 @@ jobs: with: context: . push: true - tags: deltampc/delta-chain-connector + tags: deltampc/delta-chain-connector-${{ steps.vars.outputs.sha_short }}