Skip to content

Commit

Permalink
gh actions push image from main
Browse files Browse the repository at this point in the history
  • Loading branch information
MRuecklCC committed Sep 20, 2022
1 parent 62dd296 commit ef620ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
with:
# we need more than the last commit to figure out the version from the tags and commits.
fetch-depth: 0

- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.9
Expand Down Expand Up @@ -98,7 +99,7 @@ jobs:
file: dockerfile_${{ matrix.image }}
# only push if we build from main branch
# might need tweaks for pushing of tags.
push: ${{ github.ref == 'main' || github.ref == 'v${VERSION_TAG}' }}
push: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/tags/v${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

0 comments on commit ef620ed

Please sign in to comment.