Skip to content

Commit 40fbe64

Browse files
committed
wip
1 parent ae0b757 commit 40fbe64

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/workflows/docker.yml

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

22+
- name: Set GOOSEBIT_VERSION env var
23+
run: |
24+
tag_=$GITHUB_REF_NAME
25+
tag=v0.1.2
26+
echo "GOOSEBIT_VERSION=${tag#v}" >> $GITHUB_ENV
27+
2228
- name: Build and push Docker image
2329
id: push
2430
uses: docker/build-push-action@v6.6.1
2531
with:
2632
context: .
27-
build-args: GOOSEBIT_VERSION=0.1.2
33+
build-args: GOOSEBIT_VERSION=${{ env.GOOSEBIT_VERSION }}
2834
file: ./Dockerfile
2935
push: false
3036
# 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)