Skip to content

Commit

Permalink
allow the specify the version of ood to build
Browse files Browse the repository at this point in the history
  • Loading branch information
wpoely86 committed Aug 26, 2024
1 parent 7e01537 commit 438efbd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build-publish-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Build and publish container images
on:
pull_request:
workflow_dispatch:
inputs:
upstream_version:
type: string
description: Which version should be build?

push:
schedule:
# rebuild image every Monday morning
Expand Down Expand Up @@ -116,6 +121,14 @@ jobs:
echo "Building release $release"
echo "RELEASE=${release}" >> $GITHUB_ENV
- name: Check the version specified manually
if: ${{ inputs.upstream_version }}
shell: bash
run: |
release=$(curl -s -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/OSC/ondemand/releases/tags/${{ inputs.upstream_version }} | jq -e -r .name)
echo "Building release $release"
echo "RELEASE=${release}" >> $GITHUB_ENV
- name: Check out the repo
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 438efbd

Please sign in to comment.