From d1ba042568c7f64552c3983b0756931e17aeab0a Mon Sep 17 00:00:00 2001 From: Teodor Date: Thu, 30 Jul 2020 16:29:35 +0300 Subject: [PATCH] Fix docker build tag name --- .github/workflows/docker.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index be10091..c50cd94 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -2,20 +2,24 @@ name: Publish Docker on: push: tags: - - "*" + - 'v*.*.*' jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@master + - name: Set tag name + id: vars + run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} - name: Publish to Registry uses: elgohr/Publish-Docker-Github-Action@master env: OVFTOOL_LOCATION: ${{secrets.OVFTOOL_LOCATION}} + KONFIGADM_VERSION: ${{ steps.vars.outputs.tag }} with: name: flanksource/konfigadm username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} tag_names: true snapshot: true - buildargs: OVFTOOL_LOCATION + buildargs: OVFTOOL_LOCATION, KONFIGADM_VERSION