Skip to content

Commit 1007fe1

Browse files
committed
wip
1 parent ae0b757 commit 1007fe1

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/workflows/docker.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,17 @@ jobs:
1919
- name: Checkout repository
2020
uses: actions/checkout@v4
2121

22+
- name: Set GOOSEBIT_VERSION env var
23+
run: |
24+
tag=${{ github.event.release.tag_name }}
25+
echo "GOOSEBIT_VERSION=${tag#v}" >> $GITHUB_ENV
26+
2227
- name: Build and push Docker image
2328
id: push
2429
uses: docker/build-push-action@v6.6.1
2530
with:
2631
context: .
27-
build-args: GOOSEBIT_VERSION=0.1.2
32+
build-args: GOOSEBIT_VERSION=${{ env.GOOSEBIT_VERSION }}
2833
file: ./Dockerfile
2934
push: false
3035
# tags: ${{ steps.meta.outputs.tags }}

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ FROM python:3.12.4-alpine
22

33
ARG GOOSEBIT_VERSION
44

5-
#RUN pip install --no-cache-dir goosebit[postgresql]==$GOOSEBIT_VERSION
5+
RUN pip install --no-cache-dir goosebit[postgresql]==$GOOSEBIT_VERSION
66

7-
COPY . /tmp/src
8-
RUN cd /tmp/src && \
9-
pip install --no-cache-dir .[postgresql] && \
10-
cd - && \
11-
rm -rf /tmp/src
7+
# COPY . /tmp/src
8+
# RUN cd /tmp/src && \
9+
# pip install --no-cache-dir .[postgresql] && \
10+
# cd - && \
11+
# rm -rf /tmp/src
1212

1313
VOLUME /artifacts
1414

0 commit comments

Comments
 (0)