Skip to content

Commit

Permalink
Explicitly specify image name rather than trying to calculate
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphall committed Oct 22, 2024
1 parent 4a90b4d commit 760f36c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .github/actions/push-digest-local/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ runs:
mkdir -p /tmp/${{ inputs.registry }}/tags/
# In harbor, upload to osg-htc instead of opensciencegrid
TAGS=${{ steps.upload-image.outputs.image-list }}
if [[ ${{ inputs.registry }} == "hub.opensciencegrid.org" ]]; then
TAGS=$(echo $TAGS | sed 's/\/opensciencegrid/\/osg-htc/g')
fi
echo $TAGS > /tmp/${{ inputs.registry }}/tags/${{ inputs.base_tag }}-${{ steps.slash-escape.outputs.platform }}
- name: Upload tags
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ jobs:
# osg_series: ['23']
# repo: ['development', 'testing', 'release']
os: ['el9']
osg_series: ['24']
osg_series:
- series: '24'
image: 'osg-htc/ospool-ep'
- series: '23'
image: 'opensciencegrid/osgvo-docker-pilot'
repo: ['development']
platform: ['linux/amd64','linux/arm64']
exclude:
Expand All @@ -35,11 +39,12 @@ jobs:

- id: custom-image-name
env:
SERIES: ${{ matrix.osg_series }}
SERIES: ${{ matrix.osg_series.series }}
IMAGE: ${{ matrix.osg_series.image }}
REPO: ${{ matrix.repo }}
OS: ${{ matrix.os }}
run: |
PREFIX="output_image=${GITHUB_REPOSITORY/osgvo-docker-pilot/ospool-ep}:${SERIES}"
PREFIX="output_image=${IMAGE}:${SERIES}"
TIMESTAMP=$(date +%Y%m%d-%H%M)
echo "${PREFIX}-${OS}-${REPO}" >> ${GITHUB_OUTPUT}
echo "base_tag=${SERIES}-${OS}-${REPO}" >> ${GITHUB_OUTPUT}
Expand All @@ -50,7 +55,7 @@ jobs:
uses: opensciencegrid/build-container-action@HEAD
with:
registry_url: hub.opensciencegrid.org
osg_series: ${{ matrix.osg_series }}
osg_series: ${{ matrix.osg_series.series }}
osg_repo: ${{ matrix.repo }}
base_os: ${{ matrix.os }}
platform: ${{ matrix.platform }}
Expand Down Expand Up @@ -111,7 +116,7 @@ jobs:
registry: hub.opensciencegrid.org
username: ${{ secrets.OSG_HARBOR_ROBOT_USER }}
password: ${{ secrets.OSG_HARBOR_ROBOT_PASSWORD }}
osg_series: ${{ matrix.osg_series }}
osg_series: ${{ matrix.osg_series.series }}
osg_repo: ${{ matrix.repo }}
base_os: ${{ matrix.os }}
platform: ${{ matrix.platform }}
Expand Down Expand Up @@ -157,7 +162,7 @@ jobs:
# osg_series: ['23']
# repo: ['development', 'testing', 'release']
os: ['el9']
osg_series: ['24']
osg_series: ['23', '24']
repo: ['development']
registry: [
{
Expand Down

0 comments on commit 760f36c

Please sign in to comment.