From d2ec38d5fd1875bf03bd7d8615a219df48f049b2 Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Sat, 9 Jan 2021 21:21:50 +0100 Subject: [PATCH] use correct version --- .github/workflows/docker.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index be271a3b7..4afc1027f 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -18,6 +18,18 @@ jobs: buildx: runs-on: ubuntu-latest steps: + - + name: Prepare + id: prepare + run: | + VERSION=edge + if [[ $GITHUB_REF == refs/tags/ng-* ]]; then + VERSION=${GITHUB_REF#refs/tags/ng-} + fi + if [[ $GITHUB_REF == refs/heads/* ]]; then + VERSION=${GITHUB_REF#refs/heads/} + fi + echo ::set-output name=version::${VERSION} - name: Checkout uses: actions/checkout@v2 @@ -49,10 +61,10 @@ jobs: file: ./Dockerfile platforms: linux/amd64,linux/arm/v7 push: true - tags: jonaswinkler/paperless-ng:edge + tags: jonaswinkler/paperless-ng:${{ steps.prepare.outputs.version }} cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache - name: Inspect image run: | - docker buildx imagetools inspect jonaswinkler/paperless-ng:edge + docker buildx imagetools inspect jonaswinkler/paperless-ng:${{ steps.prepare.outputs.version }}