Skip to content

Commit

Permalink
Try to fix CI again
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Nov 25, 2023
1 parent 09f4c26 commit 505a8a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ jobs:
- name: Push images
if: ${{ github.event_name != 'pull_request' && github.repository == 'DIRACGrid/container-images' && github.ref_name == 'main' }}
run: |
set -x
image_version=$(date +'%Y.%m.%d')
# Check how many tags already exist for the current date and increment the version
count=$(oras repo tags "ghcr.io/diracgrid/diracx/base" | grep -c "${image_version}" || echo "0")
Expand All @@ -114,6 +116,5 @@ jobs:
for image_name in base services-base client-base; do
image_repo=ghcr.io/diracgrid/diracx/${image_name}
oras cp --from-oci-layout "$PWD/output-${image_name}:latest" "${image_repo}:latest"
oras cp "${image_repo}:latest" "${image_repo}:${image_version}"
oras cp --from-oci-layout "$PWD/output-${image_name}:latest" "${image_repo}:latest,${image_version}"
done

0 comments on commit 505a8a6

Please sign in to comment.