From 3d1b0fbd3d87154f056abfecdd39ad9b89af5c1b Mon Sep 17 00:00:00 2001 From: Eirik Haatveit Date: Thu, 14 Mar 2024 12:46:25 +0100 Subject: [PATCH] Loop with build matrix --- .github/workflows/container.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/container.yaml b/.github/workflows/container.yaml index 5e86973..2420e60 100644 --- a/.github/workflows/container.yaml +++ b/.github/workflows/container.yaml @@ -2,8 +2,6 @@ name: Build container on: push: - tags: - - 'v*' env: REGISTRY: ghcr.io @@ -17,11 +15,15 @@ jobs: permissions: contents: read packages: write + strategy: + matrix: + tag: ["v2.0", "v2.1" ] steps: - name: Checkout repository uses: actions/checkout@v4 with: + ref: ${{ matrix.tag }} fetch-depth: 0 - name: Extract metadata (tags, labels) for container id: meta