From 82ae000f06c2e2152b8a82769f0573333dd62ec3 Mon Sep 17 00:00:00 2001 From: Graham Dumpleton Date: Mon, 28 Nov 2022 11:51:45 +1100 Subject: [PATCH] Publish client programs as OCI image artifact. --- .../workflows/build-and-publish-images.yaml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/build-and-publish-images.yaml b/.github/workflows/build-and-publish-images.yaml index 914373c9..b7fb163a 100644 --- a/.github/workflows/build-and-publish-images.yaml +++ b/.github/workflows/build-and-publish-images.yaml @@ -310,6 +310,36 @@ jobs: name: educates-darwin-amd64 path: client-programs/educates-darwin-amd64 + publish-client-programs: + name: Programs + runs-on: ubuntu-latest + needs: + - publish-carvel-bundles + - build-client-programs-linux-amd64 + - build-client-programs-darwin-amd64 + + steps: + - name: Restore educates-linux-amd64 + uses: actions/download-artifact@v3 + with: + name: educates-linux-amd64 + path: client-programs + + - name: Restore educates-darwin-amd64 + uses: actions/download-artifact@v3 + with: + name: educates-darwin-amd64 + path: client-programs + + - name: Publish client programs + shell: bash + run: | + imgpkg push \ + -i ghcr.io/${{github.repository_owner}}/educates-client-programs:${{env.REPOSITORY_TAG}} \ + -f client-programs \ + --registry-username=${{github.actor}} \ + --registry-password=${{secrets.GITHUB_TOKEN}} + release-artifacts: name: Release runs-on: ubuntu-latest