From 06299db8a51a9828dfede947eb4ae8ceec0c4c48 Mon Sep 17 00:00:00 2001 From: Matt Pryor Date: Tue, 9 Jan 2024 17:32:49 +0000 Subject: [PATCH] [DONOTMERGE] Check skopeo version (#210) * Check skopeo version * Switch to PR event for testing * Use Skopeo container to get a more recent version * Remove debugging statements --- .github/workflows/sync-images.yaml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/sync-images.yaml b/.github/workflows/sync-images.yaml index f04d9df..9307b0e 100644 --- a/.github/workflows/sync-images.yaml +++ b/.github/workflows/sync-images.yaml @@ -36,17 +36,18 @@ jobs: with: ref: ${{ inputs.ref }} - - name: Install skopeo - run: sudo apt-get -y update && sudo apt-get install -y skopeo - # Just sync all the images in all the manifests to GitHub packages - name: Sync component images run: |- - skopeo sync \ - --src yaml \ - --dest docker \ - --dest-creds ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} \ - --scoped \ - --all \ - ${{ matrix.manifest-file }} \ - ghcr.io/stackhpc + podman run \ + -v ./skopeo-manifests:/opt/skopeo-manifests \ + -w /opt \ + quay.io/skopeo/stable:latest \ + sync \ + --src yaml \ + --dest docker \ + --dest-creds ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} \ + --scoped \ + --all \ + ${{ matrix.manifest-file }} \ + ghcr.io/stackhpc