Skip to content

Commit

Permalink
Merge pull request #96 from opensciencegrid/SOFTWARE-5993-software-ba…
Browse files Browse the repository at this point in the history
…se-osg24

SOFTWARE-5993: osg-24 software-base
  • Loading branch information
brianhlin authored Oct 17, 2024
2 parents 25f606c + e315b88 commit b813f28
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

build:
runs-on: ubuntu-latest
if: startsWith(github.repository, 'opensciencegrid/')
if: startsWith(github.repository, 'opensciencegrid/') || startsWith(github.repository, 'osg-htc/')
strategy:
fail-fast: False
matrix:
Expand All @@ -32,7 +32,7 @@ jobs:
- image: 'nvidia/cuda:11.8.0-runtime-rockylinux8'
tag_str: 'cuda_11_8_0'
repo: ['development', 'testing', 'release']
series: ['23']
series: ['23', '24']
needs: make-date-tag
steps:
- name: checkout docker-software-base
Expand All @@ -45,10 +45,15 @@ jobs:
SERIES: ${{ matrix.series }}
TIMESTAMP: ${{ needs.make-date-tag.outputs.dtag }}
run: |
docker_repo=${GITHUB_REPOSITORY/opensciencegrid\/docker-/opensciencegrid/}
image_name=${GITHUB_REPOSITORY/opensciencegrid\/docker-/}
tags=()
for registry in hub.opensciencegrid.org docker.io; do
tags+=( $registry/$docker_repo:$SERIES-$BASE_STR-$REPO{,-$TIMESTAMP} )
for docker_repo in opensciencegrid osg-htc; do
# Don't try to push to docker.io/osg-htc
[[ $docker_repo == "osg-htc" && $registry == "docker.io" ]] && continue
tags+=( $registry/$docker_repo/$image_name:$SERIES-$BASE_STR-$REPO{,-$TIMESTAMP} )
done
done
# This causes the tag_list array to be comma-separated below,
# which is required for build-push-action
Expand All @@ -73,7 +78,7 @@ jobs:

- name: Build and push Docker images
uses: docker/build-push-action@v4
continue-on-error: ${{ matrix.repo == 'development' && matrix.series == '23' }}
continue-on-error: ${{ matrix.repo == 'development' && (matrix.series == '24')}}
with:
context: .
push: true
Expand All @@ -86,7 +91,7 @@ jobs:

dispatch:
runs-on: ubuntu-latest
if: startsWith(github.repository, 'opensciencegrid/')
if: startsWith(github.repository, 'opensciencegrid/') || startsWith(github.repository, 'osg-htc/')
needs: build
strategy:
matrix:
Expand Down

0 comments on commit b813f28

Please sign in to comment.