From 6f683737c825f8e789af8d0b67406d9c599775c7 Mon Sep 17 00:00:00 2001 From: Christoph Gerum Date: Thu, 22 Aug 2024 18:42:30 +0200 Subject: [PATCH] Build hannah images without python version --- .github/workflows/publish_images.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_images.yml b/.github/workflows/publish_images.yml index 428088aa..ce552c2e 100644 --- a/.github/workflows/publish_images.yml +++ b/.github/workflows/publish_images.yml @@ -44,6 +44,9 @@ jobs: - 3.10 - 3.11 - 3.12 + include: + - image_name: hannah + python_version: 3.12 # THis is ignored # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. @@ -70,7 +73,8 @@ jobs: id: meta uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 with: - images: ${{ env.REGISTRY }}/${{ matrix.image_name }}_${{matrix.python_version }} + images: ${{ env.REGISTRY }}/${{ matrix.image_name }}${{ matrix.image_name == 'python' && '_${{ matrix.python_version }}' || '' }} + # This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages. # It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository. # It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.