-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shorten image list and break into separate file
Easier to run via act for testing. We now omit old previews and no longer truncate valid tags containing dashes
- Loading branch information
1 parent
b554c02
commit 18fac8c
Showing
2 changed files
with
42 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Images List | ||
on: | ||
workflow_call: | ||
outputs: | ||
images: | ||
description: "The full list of images to use, as a JSON array of imagename:tag" | ||
value: ${{ jobs.images.outputs.images }} | ||
secondword: | ||
description: "The main image to use (earliest relevant version) to generate the installer XML file" | ||
value: ${{ jobs.images.outputs.main }} | ||
|
||
env: | ||
name: | | ||
irishealth-community | ||
iris-community | ||
jobs: | ||
images: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
images: ${{ steps.set-matrix.outputs.images }} | ||
main: ${{ steps.set-matrix.outputs.main }} | ||
steps: | ||
- name: Images list | ||
id: set-matrix | ||
run: | | ||
images="" | ||
for n in $name; do | ||
tags=$(curl -su ":" https://containers.intersystems.com/v2/intersystems/${n}/tags/list | jq -r '.tags[]' | awk '!/(-linux)|([1-4]-preview)/' | awk '!/\.[1-4]\.0\./' | uniq) | ||
for tag in $tags; do images+='"'${n}:${tag}'",'; done | ||
done; | ||
echo images="[${images%?}]" >> $GITHUB_OUTPUT | ||
echo main=${images%%,*} >> $GITHUB_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters