Skip to content

Commit b813f28

Browse files
authored
Merge pull request #96 from opensciencegrid/SOFTWARE-5993-software-base-osg24
SOFTWARE-5993: osg-24 software-base
2 parents 25f606c + e315b88 commit b813f28

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/build-container.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
build:
2222
runs-on: ubuntu-latest
23-
if: startsWith(github.repository, 'opensciencegrid/')
23+
if: startsWith(github.repository, 'opensciencegrid/') || startsWith(github.repository, 'osg-htc/')
2424
strategy:
2525
fail-fast: False
2626
matrix:
@@ -32,7 +32,7 @@ jobs:
3232
- image: 'nvidia/cuda:11.8.0-runtime-rockylinux8'
3333
tag_str: 'cuda_11_8_0'
3434
repo: ['development', 'testing', 'release']
35-
series: ['23']
35+
series: ['23', '24']
3636
needs: make-date-tag
3737
steps:
3838
- name: checkout docker-software-base
@@ -45,10 +45,15 @@ jobs:
4545
SERIES: ${{ matrix.series }}
4646
TIMESTAMP: ${{ needs.make-date-tag.outputs.dtag }}
4747
run: |
48-
docker_repo=${GITHUB_REPOSITORY/opensciencegrid\/docker-/opensciencegrid/}
48+
image_name=${GITHUB_REPOSITORY/opensciencegrid\/docker-/}
4949
tags=()
5050
for registry in hub.opensciencegrid.org docker.io; do
51-
tags+=( $registry/$docker_repo:$SERIES-$BASE_STR-$REPO{,-$TIMESTAMP} )
51+
for docker_repo in opensciencegrid osg-htc; do
52+
# Don't try to push to docker.io/osg-htc
53+
[[ $docker_repo == "osg-htc" && $registry == "docker.io" ]] && continue
54+
55+
tags+=( $registry/$docker_repo/$image_name:$SERIES-$BASE_STR-$REPO{,-$TIMESTAMP} )
56+
done
5257
done
5358
# This causes the tag_list array to be comma-separated below,
5459
# which is required for build-push-action
@@ -73,7 +78,7 @@ jobs:
7378

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

8792
dispatch:
8893
runs-on: ubuntu-latest
89-
if: startsWith(github.repository, 'opensciencegrid/')
94+
if: startsWith(github.repository, 'opensciencegrid/') || startsWith(github.repository, 'osg-htc/')
9095
needs: build
9196
strategy:
9297
matrix:

0 commit comments

Comments
 (0)