Skip to content

Commit

Permalink
restore removed conditional runs
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphall committed Oct 22, 2024
1 parent 760f36c commit 859034b
Showing 1 changed file with 38 additions and 40 deletions.
78 changes: 38 additions & 40 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,14 @@ jobs:
strategy:
fail-fast: false
matrix:
# os: ['el9', 'cuda_11_8_0']
os: ['el9', 'cuda_11_8_0']
# osg_series: ['23']
# repo: ['development', 'testing', 'release']
os: ['el9']
repo: ['development', 'testing', 'release']
osg_series:
- series: '24'
image: 'osg-htc/ospool-ep'
- series: '23'
image: 'opensciencegrid/osgvo-docker-pilot'
repo: ['development']
platform: ['linux/amd64','linux/arm64']
exclude:
# cuda builds take a super long time; only do one of them
Expand Down Expand Up @@ -106,10 +104,10 @@ jobs:
fi
- id: upload-by-digest-harbor
# if: >-
# github.ref == 'refs/heads/master' &&
# github.event_name != 'pull_request' &&
# github.repository_owner == 'opensciencegrid'
if: >-
github.ref == 'refs/heads/master' &&
github.event_name != 'pull_request' &&
contains(fromJson('["opensciencegrid","osg-htc"]'), github.repository_owner)
name: Upload By Digest to Harbor
uses: ./.github/actions/push-digest-local
with:
Expand All @@ -128,53 +126,53 @@ jobs:
# and will remain as cruft in harbor unlesss manually removed in the case that
# some arch fails. Handling this scenario is future work:
# https://opensciencegrid.atlassian.net/browse/SOFTWARE-6010
# - id: upload-by-digest-dockerhub
# # if: >-
# # github.ref == 'refs/heads/master' &&
# # github.event_name != 'pull_request' &&
# # github.repository_owner == 'opensciencegrid'
# name: Upload By Digest to Docker Hub
# uses: ./.github/actions/push-digest-local
# with:
# registry: docker.io
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
# osg_series: ${{ matrix.osg_series }}
# osg_repo: ${{ matrix.repo }}
# base_os: ${{ matrix.os }}
# platform: ${{ matrix.platform }}
# base_tag: ${{ steps.custom-image-name.outputs.base_tag }}
# timestamp: ${{ steps.custom-image-name.outputs.timestamp }}
# output_image: ${{ steps.custom-image-name.outputs.output_image }}
- id: upload-by-digest-dockerhub
# TODO support the osg-htc organization on dockerhub
if: >-
github.ref == 'refs/heads/master' &&
github.event_name != 'pull_request' &&
contains(fromJson('["opensciencegrid","osg-htc"]'), github.repository_owner) &&
startsWith(matrix.osg_series.image, 'opensciencegrid')
name: Upload By Digest to Docker Hub
uses: ./.github/actions/push-digest-local
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
osg_series: ${{ matrix.osg_series }}
osg_repo: ${{ matrix.repo }}
base_os: ${{ matrix.os }}
platform: ${{ matrix.platform }}
base_tag: ${{ steps.custom-image-name.outputs.base_tag }}
timestamp: ${{ steps.custom-image-name.outputs.timestamp }}
output_image: ${{ steps.custom-image-name.outputs.output_image }}

merge-manifests:
runs-on: ubuntu-latest
# if: >-
# github.ref == 'refs/heads/master' &&
# github.event_name != 'pull_request' &&
# github.repository_owner == 'opensciencegrid'
if: >-
github.ref == 'refs/heads/master' &&
github.event_name != 'pull_request' &&
contains(fromJson('["opensciencegrid","osg-htc"]'), github.repository_owner)
needs:
- build-images
strategy:
fail-fast: false
matrix:
# os: ['el9', 'cuda_11_8_0']
# osg_series: ['23']
# repo: ['development', 'testing', 'release']
os: ['el9']
os: ['el9', 'cuda_11_8_0']
repo: ['development', 'testing', 'release']
osg_series: ['23', '24']
repo: ['development']
registry: [
{
url: hub.opensciencegrid.org,
username: OSG_HARBOR_ROBOT_USER,
password: OSG_HARBOR_ROBOT_PASSWORD
},
# {
# url: docker.io,
# username: DOCKER_USERNAME,
# password: DOCKER_PASSWORD
# }
{
url: docker.io,
username: DOCKER_USERNAME,
password: DOCKER_PASSWORD
}
]
exclude:
# cuda builds take a super long time; only do one of them
Expand Down

0 comments on commit 859034b

Please sign in to comment.