From 4654ed26748fa611cf2312e75c03cbdda1b196a8 Mon Sep 17 00:00:00 2001 From: Adam Dyess Date: Mon, 15 Apr 2024 15:56:06 -0500 Subject: [PATCH] Handle tagging with different prefix during charm publish (#66) --- .github/workflows/publish-charms.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-charms.yaml b/.github/workflows/publish-charms.yaml index 5d53bdac..00ebbbf2 100644 --- a/.github/workflows/publish-charms.yaml +++ b/.github/workflows/publish-charms.yaml @@ -32,9 +32,12 @@ jobs: uses: canonical/operator-workflows/.github/workflows/publish_charm.yaml@main strategy: matrix: - charm-directory: ["./charms/worker/", "./charms/worker/k8s/"] + charm: [ + {path: "./charms/worker/", tagPrefix: "k8s-worker"}, + {path: "./charms/worker/k8s/", tagPrefix: "k8s"} + ] secrets: inherit with: channel: ${{needs.configure-channel.outputs.track}}/${{needs.configure-channel.outputs.risk}} - working-directory: ${{ matrix.charm-directory }} - tag-prefix: k8s + working-directory: ${{ matrix.charm.path }} + tag-prefix: ${{ matrix.charm.tagPrefix }}