diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index a01d435f..0f24c8e7 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -19,12 +19,17 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Set GOOSEBIT_VERSION env var + run: | + tag=${{ github.event.release.tag_name }} + echo "GOOSEBIT_VERSION=${tag#v}" >> $GITHUB_ENV + - name: Build and push Docker image id: push uses: docker/build-push-action@v6.6.1 with: context: . - build-args: GOOSEBIT_VERSION=0.1.2 + build-args: GOOSEBIT_VERSION=${{ env.GOOSEBIT_VERSION }} file: ./Dockerfile push: false # tags: ${{ steps.meta.outputs.tags }} diff --git a/Dockerfile b/Dockerfile index 4abcb20e..7f4f2882 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,13 +2,13 @@ FROM python:3.12.4-alpine ARG GOOSEBIT_VERSION -#RUN pip install --no-cache-dir goosebit[postgresql]==$GOOSEBIT_VERSION +RUN pip install --no-cache-dir goosebit[postgresql]==$GOOSEBIT_VERSION -COPY . /tmp/src -RUN cd /tmp/src && \ - pip install --no-cache-dir .[postgresql] && \ - cd - && \ - rm -rf /tmp/src +# COPY . /tmp/src +# RUN cd /tmp/src && \ +# pip install --no-cache-dir .[postgresql] && \ +# cd - && \ +# rm -rf /tmp/src VOLUME /artifacts