From 068b5fe5e90c7792c9f614167d97de8b0b3d86f0 Mon Sep 17 00:00:00 2001 From: Vladislav Yarmak Date: Wed, 9 Jun 2021 16:02:05 +0300 Subject: [PATCH] embed version --- .github/workflows/docker-ci.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-ci.yml b/.github/workflows/docker-ci.yml index ba360b3..bf7a87f 100644 --- a/.github/workflows/docker-ci.yml +++ b/.github/workflows/docker-ci.yml @@ -11,7 +11,22 @@ jobs: docker: runs-on: ubuntu-latest steps: - - name: Determine tag type + - + name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - + name: Find Git Tag + id: tagger + uses: jimschubert/query-tag-action@v1 + with: + include: 'v*' + exclude: '*-rc*' + commit-ish: 'HEAD~' + skip-unshallow: 'true' + - + name: Determine image tag type uses: haya14busa/action-cond@v1 id: imgtag with: @@ -38,3 +53,5 @@ jobs: platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v7 push: true tags: ${{secrets.DOCKERHUB_USERNAME}}/dumbproxy:${{ steps.imgtag.outputs.value }} + build-args: + - 'GIT_DESC=${{steps.tagger.outputs.tag}}'