Skip to content

Commit

Permalink
fix WHEEL_FILE build argument in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
MRuecklCC committed Sep 21, 2022
1 parent 663743c commit b8869e0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ jobs:

- name: Checkout repository
uses: actions/checkout@v3
with:
# we need more than the last commit to figure out the version from the tags and commits.
fetch-depth: 0

- name: Set version tag
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#set-an-output-parameter-set-output
Expand All @@ -95,11 +98,13 @@ jobs:

- name: Build and push Image
uses: docker/build-push-action@v3
env:
WHEEL_FILE: oeh_meta_lookup-v0.3.0-py3-none-any.whl
with:
context: .
file: dockerfile_${{ matrix.image }}
# only push if we build from main branch or a tag that matches
push: ${{ github.ref == 'refs/heads/main' || github.ref_name == steps.version-tag-step.outputs.VERSION_TAG }}
tags: ${{ steps.meta.outputs.tags }}
build-args: | # not really needed for the lighthouse matrix job, but oh well...
WHEEL_FILE=oeh_meta_lookup-${VERSION_TAG}-py3-none-any.whl
build-args: WHEEL_FILE
# build-args: WHEEL_FILE=oeh_meta_lookup-${{ steps.version-tag-step.outputs.VERSION_TAG }}-py3-none-any.whl
5 changes: 5 additions & 0 deletions dockerfile_api
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ FROM python:3.9-slim

RUN adduser --system extractor


RUN echo "${WHEEL_FILE}"
RUN echo ${WHEEL_FILE}
RUN echo $WHEEL_FILE

WORKDIR /home/extractor

# needed for docker healthcheck
Expand Down

0 comments on commit b8869e0

Please sign in to comment.