Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
MRuecklCC committed Sep 20, 2022
1 parent ef620ed commit 5d83f67
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
uses: actions/checkout@v3

- name: Get wheel filename
run: export VERSION_TAG=$(git describe --tags --abbrev=0 | sed 's/^v//')
run: export VERSION_TAG=v$(git describe --tags --abbrev=0 | sed 's/^v//')

- name: Docker meta
id: meta
Expand All @@ -82,7 +82,6 @@ jobs:
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern=v{{major}}.{{minor}}.{{patch}}
- name: Login to EDU-Sharing Container Registry
Expand All @@ -92,14 +91,21 @@ jobs:
username: ${{ secrets.DOCKER_EDU_HUB_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_EDU_HUB_REGISTRY_PASSWORD }}

- name: debug
run: |
echo ${{ github.ref }}
echo ${{ env.VERSION_TAG }}
echo ${{ env.VERSION_TAG }}
echo ${{ github.ref_name == env.VERSION_TAG }}
- name: Build and push Image
uses: docker/build-push-action@v3
with:
context: .
file: dockerfile_${{ matrix.image }}
# only push if we build from main branch
# might need tweaks for pushing of tags.
push: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/tags/v${VERSION_TAG}' }}
push: ${{ github.ref == 'refs/heads/main' || github.ref_name == env.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 5d83f67

Please sign in to comment.