From ef620ed85a3a81468a792a750540b0f81f4385a5 Mon Sep 17 00:00:00 2001 From: Martin Rueckl Date: Mon, 19 Sep 2022 17:16:17 +0200 Subject: [PATCH] gh actions push image from main --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 722b9fd..d46239e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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