Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
easybe committed Aug 9, 2024
1 parent ae0b757 commit 46e7daf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,18 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set GOOSEBIT_VERSION env var
run: |
#tag=${{ github.event.release.tag_name }}
tag=v0.1.2
echo "GOOSEBIT_VERSION=${tag#v}" >> $GITHUB_ENV
- name: Build and push Docker image
id: push
uses: docker/[email protected]
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 }}
Expand Down
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 46e7daf

Please sign in to comment.