Skip to content

Commit

Permalink
Allow to set tag in workflow dispatch.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminRodenberg committed Aug 27, 2024
1 parent 45b3ecc commit ae454b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/build-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/build-spack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
BINDINGS_VERSION=$(python3 -c "import precice; print(precice.__version__)") && echo "Installed version of bindings is ${BINDINGS_VERSION}"

0 comments on commit ae454b9

Please sign in to comment.