Skip to content

Commit ca86532

Browse files
authored
Merge pull request #206 from mwestphall/SOFTWARE-6215-el10
SOFTWARE-6215: OSG 25
2 parents 547a41e + 251b6c3 commit ca86532

File tree

1 file changed

+14
-50
lines changed

1 file changed

+14
-50
lines changed

.github/workflows/build-container.yml

Lines changed: 14 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,26 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
os: ['el9', 'cuda_11_8_0']
21-
# osg_series: ['23']
2221
repo: ['development', 'testing', 'release']
23-
osg_series:
24-
- series: '24'
25-
image: 'osg-htc/ospool-ep'
26-
- series: '23'
27-
image: 'opensciencegrid/osgvo-docker-pilot'
22+
image: ['osg-htc/ospool-ep']
23+
osg_series: ['24', '25']
2824
arch: ['amd64','arm64']
2925
exclude:
3026
# cuda builds take a super long time; only do one of them
3127
- os: cuda_11_8_0
3228
repo: development
3329
- os: cuda_11_8_0
3430
repo: testing
31+
# EL10 isn't supported in OSG 24
32+
- os: el10
33+
osg_series: '24'
3534
steps:
3635
- uses: actions/checkout@v3
3736

3837
- id: custom-image-name
3938
env:
40-
SERIES: ${{ matrix.osg_series.series }}
41-
IMAGE: ${{ matrix.osg_series.image }}
39+
SERIES: ${{ matrix.osg_series }}
40+
IMAGE: ${{ matrix.image }}
4241
REPO: ${{ matrix.repo }}
4342
OS: ${{ matrix.os }}
4443
run: |
@@ -53,7 +52,7 @@ jobs:
5352
uses: opensciencegrid/build-container-action@HEAD
5453
with:
5554
registry_url: hub.opensciencegrid.org
56-
osg_series: ${{ matrix.osg_series.series }}
55+
osg_series: ${{ matrix.osg_series }}
5756
osg_repo: ${{ matrix.repo }}
5857
base_os: ${{ matrix.os }}
5958
platform: linux/${{ matrix.arch }}
@@ -114,40 +113,13 @@ jobs:
114113
registry: hub.opensciencegrid.org
115114
username: ${{ secrets.OSG_HARBOR_ROBOT_USER }}
116115
password: ${{ secrets.OSG_HARBOR_ROBOT_PASSWORD }}
117-
osg_series: ${{ matrix.osg_series.series }}
116+
osg_series: ${{ matrix.osg_series }}
118117
osg_repo: ${{ matrix.repo }}
119118
base_os: ${{ matrix.os }}
120119
platform: linux/${{ matrix.arch }}
121120
base_tag: ${{ steps.custom-image-name.outputs.base_tag }}
122121
timestamp: ${{ steps.custom-image-name.outputs.timestamp }}
123122
output_image: ${{ steps.custom-image-name.outputs.output_image }}
124-
125-
# TODO: these artifacts will only be tagged if the build succeeds for every arch,
126-
# and will remain as cruft in harbor unlesss manually removed in the case that
127-
# some arch fails. Handling this scenario is future work:
128-
# https://opensciencegrid.atlassian.net/browse/SOFTWARE-6010
129-
- id: upload-by-digest-dockerhub
130-
# TODO support the osg-htc organization on dockerhub
131-
if: >-
132-
github.ref == 'refs/heads/master' &&
133-
github.event_name != 'pull_request' &&
134-
contains(fromJson('["opensciencegrid","osg-htc"]'), github.repository_owner) &&
135-
startsWith(matrix.osg_series.image, 'opensciencegrid')
136-
137-
name: Upload By Digest to Docker Hub
138-
uses: ./.github/actions/push-digest-local
139-
with:
140-
registry: docker.io
141-
username: ${{ secrets.DOCKER_USERNAME }}
142-
password: ${{ secrets.DOCKER_PASSWORD }}
143-
osg_series: ${{ matrix.osg_series.series }}
144-
osg_repo: ${{ matrix.repo }}
145-
base_os: ${{ matrix.os }}
146-
platform: linux/${{ matrix.arch }}
147-
base_tag: ${{ steps.custom-image-name.outputs.base_tag }}
148-
timestamp: ${{ steps.custom-image-name.outputs.timestamp }}
149-
output_image: ${{ steps.custom-image-name.outputs.output_image }}
150-
151123
merge-manifests:
152124
runs-on: ubuntu-22.04
153125
if: >-
@@ -159,19 +131,14 @@ jobs:
159131
strategy:
160132
fail-fast: false
161133
matrix:
162-
os: ['el9', 'cuda_11_8_0']
134+
os: ['el9', 'el10', 'cuda_11_8_0']
163135
repo: ['development', 'testing', 'release']
164-
osg_series: ['23', '24']
136+
osg_series: ['24', '25']
165137
registry: [
166138
{
167139
url: hub.opensciencegrid.org,
168140
username: OSG_HARBOR_ROBOT_USER,
169141
password: OSG_HARBOR_ROBOT_PASSWORD
170-
},
171-
{
172-
url: docker.io,
173-
username: DOCKER_USERNAME,
174-
password: DOCKER_PASSWORD
175142
}
176143
]
177144
exclude:
@@ -180,11 +147,8 @@ jobs:
180147
repo: development
181148
- os: cuda_11_8_0
182149
repo: testing
183-
- osg_series: '24'
184-
registry:
185-
url: docker.io
186-
username: DOCKER_USERNAME
187-
password: DOCKER_PASSWORD
150+
- os: el10
151+
osg_series: '24'
188152
steps:
189153
- id: base-tag
190154
env:
@@ -243,7 +207,7 @@ jobs:
243207
docker buildx imagetools create --tag $tag $DIGESTS;
244208
245209
# Also tag the image for the default OS as the OS-less tag
246-
# (i.e. 23-el9-release -> 23-release)
210+
# (i.e. 25-el9-release 25-release)
247211
tag2=${tag/-${DEFAULT_OS}-/-} # bash syntax for search-and-replace
248212
if [[ $tag2 != $tag ]]; then
249213
docker buildx imagetools create --tag $tag2 $DIGESTS;

0 commit comments

Comments
 (0)