Skip to content

Commit

Permalink
Merge pull request #28 from basnijholt/build-matrix
Browse files Browse the repository at this point in the history
Add build matrix for different `BASE_IMAGE`s
  • Loading branch information
maresb authored Dec 11, 2023
2 parents 63599dc + 4a5c672 commit b34ef03
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/publish_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jobs:
publish:
runs-on: ubuntu-latest

strategy:
matrix:
base-image:
- mambaorg/micromamba:git-8440cec-jammy@sha256:b8bff8398715103ddb31fb26e967db43c6ed15da63a6708121f83a3f657d3101
- mambaorg/micromamba:jammy-cuda-11.8.0@sha256:e10f98576e3b01c64a969374835d3b6bc1f481e6ff092cf3c4d032f36513d795
# Set permissions for GitHub token
# <https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#authenticating-to-package-registries-on-github>
permissions:
Expand Down Expand Up @@ -56,5 +61,6 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: BASE_IMAGE=${{ matrix.base-image }}
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
cache-to: type=inline

0 comments on commit b34ef03

Please sign in to comment.