CI: build: add option to configure container to use
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 17 Dec 2022 01:02:26 +0000 (02:02 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 23 May 2023 21:33:10 +0000 (23:33 +0200)
Add option to configure container to use for build test.
By default the tools container is used if no option is provided.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
.github/workflows/build.yml

index 0e5f36c1120121264e856ab783003973a01537a9..ef7fc51d9ad67e5c67bb8566999bd594ae3723f3 100644 (file)
@@ -5,6 +5,9 @@ on:
     secrets:
       coverity_api_token:
     inputs:
+      container_name:
+        type: string
+        default: tools
       target:
         required: true
         type: string
@@ -120,7 +123,7 @@ jobs:
     needs: setup_build
     runs-on: ubuntu-latest
 
-    container: ghcr.io/${{ needs.setup_build.outputs.owner_lc }}/tools:${{ needs.setup_build.outputs.container_tag }}
+    container: ghcr.io/${{ needs.setup_build.outputs.owner_lc }}/${{ inputs.container_name }}:${{ needs.setup_build.outputs.container_tag }}
 
     permissions:
       contents: read