Skip to content

Commit

Permalink
fix digest artifact name, add tag artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphall committed Sep 26, 2024
1 parent a21496c commit 35dd3e9
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
# repo: ['development', 'testing', 'release']
repo: [ 'release' ]
platform: ['linux/amd64']
# platform: ['linux/amd64','linux/arm64']
platform: ['linux/amd64','linux/arm64']
exclude:
# cuda builds take a super long time; only do one of them
- os: cuda_11_8_0
Expand All @@ -30,11 +30,6 @@ jobs:
steps:
- uses: actions/checkout@v3

- id: slash-escape-platform
run: |
platform=${{ matrix.platform }}
echo "platform=${platform//\//-}" >> ${GITHUB_OUTPUT}
- id: custom-image-name
env:
SERIES: ${{ matrix.osg_series }}
Expand All @@ -45,6 +40,13 @@ jobs:
echo "${PREFIX}-${OS}-${REPO}" >> ${GITHUB_OUTPUT}
echo "registry_image=hub.opensciencegrid.org/${GITHUB_REPOSITORY}" >> ${GITHUB_OUTPUT}
- id: slash-escape
run: |
platform=${{ matrix.platform }}
output_image=${{ steps.custom-image-name.outputs.output_image }}
echo "platform=${platform//\//-}" >> ${GITHUB_OUTPUT}
echo "output_image=${output_image//\//-}" >> ${GITHUB_OUTPUT}
- name: Harbor login
# if: >-
# github.ref == 'refs/heads/master' &&
Expand Down Expand Up @@ -75,10 +77,23 @@ jobs:
- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digests-${{ steps.custom-image-name.output.output_image }}-${{ steps.slash-escape-platform.output.platform }}
name: digests-${{ steps.slash-escape.outputs.output_image }}-${{ steps.slash-escape.outputs.platform }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1

- name: Export tags
run: |
mkdir -p /tmp/tags
echo ${{ steps.build-image.outputs.image-list}} > /tpm/tags/${{ steps.slash-escape.outputs.output_image }}-${{ steps.slash-escape.output.platform }}
- name: Upload tags
uses: actions/upload-artifact@v4
with:
name: tags-${{ steps.slash-escape.outputs.output_image }}-${{ steps.slash-escape.outputs.platform }}
path: /tmp/tags/*
if-no-files-found: error
retention-days: 1

# - name: Prepare CVMFS
# if: ${{ matrix.platform == 'linux/amd64' }}
Expand Down

0 comments on commit 35dd3e9

Please sign in to comment.