From 42c0f5d4ef05814ba35dba082c0f2f05fe5794c3 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 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-env.yml b/.github/workflows/build-env.yml index cf44d754..ca182733 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 + input: + tag: + description: 'tag for docker image' + required: true + default: 'latest' + type: string schedule: - cron: '0 0 * * 0' # Schedule it every Sunday @@ -9,6 +15,8 @@ jobs: build-spack-pyprecice-deps: name: Builds the baseimage for spack providing dependencies runs-on: ubuntu-latest + env: + TAG: ${{ inputs.tag }} steps: - name: Checkout Repository uses: actions/checkout@v2 @@ -25,4 +33,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:$TAG"