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 42c0f5d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@ 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

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
Expand All @@ -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"

0 comments on commit 42c0f5d

Please sign in to comment.