Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the default image OS from el8 (i.e., CentOS Stream 8) to al8 (i.e., Alma 8) #148

Merged
merged 1 commit into from
Aug 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ jobs:
OS: ${{ matrix.os }}
run: |
PREFIX="output_image=${GITHUB_REPOSITORY}:${SERIES}"
if [[ $OS == 'el8' ]]; then
echo "${PREFIX}-${REPO}" >> ${GITHUB_OUTPUT}
else
echo "${PREFIX}-${OS}-${REPO}" >> ${GITHUB_OUTPUT}
fi
echo "${PREFIX}-${OS}-${REPO}" >> ${GITHUB_OUTPUT}

- id: build-image
uses: opensciencegrid/[email protected]
Expand Down Expand Up @@ -105,12 +101,22 @@ jobs:
github.repository_owner == 'opensciencegrid'
env:
IMAGE_LIST: ${{ steps.build-image.outputs.image-list}}
DEFAULT_OS: al8
run: |
for registry in hub.opensciencegrid.org docker.io; do
IFS=,
for image in ${IMAGE_LIST}; do
fqin=${registry}/${image}
docker tag ${image} ${fqin}
docker push ${fqin}

# Also tag the image for the default OS as the OS-less tag
# (i.e. 3.6-al8-release -> 3.6-release)
image2=${image/-${DEFAULT_OS}-/-} # bash syntax for search-and-replace
if [[ $image2 != $image ]]; then
fqin2=${registry}/${image2}
docker tag ${image} ${fqin2}
docker push ${fqin2}
fi
done
done
Loading