diff --git a/.github/workflows/test-publish.yml b/.github/workflows/test-publish.yml index e2296b6..5716bac 100644 --- a/.github/workflows/test-publish.yml +++ b/.github/workflows/test-publish.yml @@ -63,17 +63,12 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - name: Set VERSION variable from tag - run: | - echo "TAG=${{ steps.meta.outputs.version }}" >> $GITHUB_ENV - echo "VERSION=${TAG#v}" >> $GITHUB_ENV - - name: Build and push id: build-and-push uses: docker/build-push-action@v6 with: annotations: ${{ steps.meta.outputs.annotations }} - build-args: VERSION=$TAG + build-args: VERSION=${{ steps.meta.outputs.version }} cache-from: type=gha cache-to: type=gha,mode=max labels: ${{ steps.meta.outputs.labels }} diff --git a/Dockerfile b/Dockerfile index 6287c1e..a9ba290 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM python:3.11-slim-bullseye ARG VERSION= -ENV PIP_ROOT_USER_ACTION=ignore TAXTASTIC_VERSION=$VERSION +ENV PIP_ROOT_USER_ACTION=ignore TAXTASTIC_VERSION=${VERSION#v} RUN apt-get -y update && apt-get upgrade -y && apt-get install -y unzip wget