From 09f3378417b0c72c9dfac93b15cf5750b2d39f78 Mon Sep 17 00:00:00 2001 From: Marcel R Date: Sun, 5 Nov 2023 11:23:28 +0100 Subject: [PATCH] Update action template. --- .../law/build-image/action.yml => actions/build-image.yml} | 4 ++++ .github/workflows/deploy_images_a9.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) rename .github/{workflows/law/build-image/action.yml => actions/build-image.yml} (94%) diff --git a/.github/workflows/law/build-image/action.yml b/.github/actions/build-image.yml similarity index 94% rename from .github/workflows/law/build-image/action.yml rename to .github/actions/build-image.yml index 529bd449..7d1c3612 100644 --- a/.github/workflows/law/build-image/action.yml +++ b/.github/actions/build-image.yml @@ -1,11 +1,15 @@ +name: Build image + inputs: docker_file: description: "The docker file." + required: True platforms: description: "Platforms to build for (csv)." default: "linux/amd64,linux/arm64" tags: description: "Image tags (csv)." + required: True build_only: description: "'true' or 'false'." default: "false" diff --git a/.github/workflows/deploy_images_a9.yml b/.github/workflows/deploy_images_a9.yml index 145ed249..46d3f75b 100644 --- a/.github/workflows/deploy_images_a9.yml +++ b/.github/workflows/deploy_images_a9.yml @@ -17,7 +17,7 @@ jobs: if: ${{ github.event.inputs.specific_job == '' || contains(github.event.inputs.specific_job, 'a9-py37') }} runs-on: ubuntu-latest steps: - - uses: law/build-image + - uses: ./github/actions/build-image with: docker_file: docker/Dockerfile_alma9_py37 tags: riga/law:a9-py37,riga/law:py37