File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,18 @@ jobs:
19
19
- name : Checkout repository
20
20
uses : actions/checkout@v4
21
21
22
+ - name : Set GOOSEBIT_VERSION env var
23
+ run : |
24
+ #tag=${{ github.event.release.tag_name }}
25
+ tag=v0.1.2
26
+ echo "GOOSEBIT_VERSION=${tag#v}" >> $GITHUB_ENV
27
+
22
28
- name : Build and push Docker image
23
29
id : push
24
30
uses : docker/build-push-action@v6.6.1
25
31
with :
26
32
context : .
27
- build-args : GOOSEBIT_VERSION=0.1.2
33
+ build-args : GOOSEBIT_VERSION=${{ env.GOOSEBIT_VERSION }}
28
34
file : ./Dockerfile
29
35
push : false
30
36
# tags: ${{ steps.meta.outputs.tags }}
Original file line number Diff line number Diff line change @@ -2,13 +2,13 @@ FROM python:3.12.4-alpine
2
2
3
3
ARG GOOSEBIT_VERSION
4
4
5
- # RUN pip install --no-cache-dir goosebit[postgresql]==$GOOSEBIT_VERSION
5
+ RUN pip install --no-cache-dir goosebit[postgresql]==$GOOSEBIT_VERSION
6
6
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
12
12
13
13
VOLUME /artifacts
14
14
You can’t perform that action at this time.
0 commit comments