From ae454b989980b9cb2c8f6573ccad61ae08b70950 Mon Sep 17 00:00:00 2001 From: Benjamin Rodenberg Date: Tue, 27 Aug 2024 12:12:04 +0200 Subject: [PATCH] Allow to set tag in workflow dispatch. --- .github/workflows/build-env.yml | 8 +++++++- .github/workflows/build-spack.yml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-env.yml b/.github/workflows/build-env.yml index cf44d754..c48e1992 100644 --- a/.github/workflows/build-env.yml +++ b/.github/workflows/build-env.yml @@ -2,6 +2,12 @@ name: Update build environment on: workflow_dispatch: # Trigger by hand from the UI + inputs: + tag: + description: 'tag for docker image' + required: true + default: 'latest' + type: string schedule: - cron: '0 0 * * 0' # Schedule it every Sunday @@ -25,4 +31,4 @@ jobs: push: true context: . file: spack/ci-spack-pyprecice-deps-2404.dockerfile - tags: precice/ci-spack-pyprecice-deps-2404 + tags: precice/ci-spack-pyprecice-deps-2404:${{ inputs.tag }} diff --git a/.github/workflows/build-spack.yml b/.github/workflows/build-spack.yml index 8ff0b6cb..c3b74589 100644 --- a/.github/workflows/build-spack.yml +++ b/.github/workflows/build-spack.yml @@ -32,4 +32,4 @@ jobs: spack add pyprecice.test.py-pyprecice@develop && spack develop pyprecice.test.py-pyprecice@develop spack install && spack find spack load py-pyprecice - BINDINGS_VERSION=$(python3 -c "import precice; print(precice.__version__)") && echo "Installed version of bindings is ${BINDINGS_VERSION}" \ No newline at end of file + BINDINGS_VERSION=$(python3 -c "import precice; print(precice.__version__)") && echo "Installed version of bindings is ${BINDINGS_VERSION}"