From 0ee67a67e40f2924cb400e3927472a4fc37a90c3 Mon Sep 17 00:00:00 2001 From: Steve Sloka Date: Tue, 14 Nov 2023 08:46:24 -0500 Subject: [PATCH] change the static reference to the docker images in the CI build to be dynamic based upon the current repo so that builds in downstream repos can produce images for testing. --- .github/workflows/docker-build-push.yaml | 5 ++--- .github/workflows/release.yaml | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-build-push.yaml b/.github/workflows/docker-build-push.yaml index 6a1b7228..6024bc53 100644 --- a/.github/workflows/docker-build-push.yaml +++ b/.github/workflows/docker-build-push.yaml @@ -68,8 +68,7 @@ jobs: with: push: true tags: | - ghcr.io/deislabs/containerd-wasm-shims/${{ matrix.image.imageName }}:${{ env.RELEASE_VERSION }} - ghcr.io/deislabs/containerd-wasm-shims/${{ matrix.image.imageName }}:latest + ghcr.io/${{ github.repository }}/${{ matrix.image.imageName }}:${{ env.RELEASE_VERSION }} + ghcr.io/${{ github.repository }}/${{ matrix.image.imageName }}:latest context: ${{ matrix.image.context }} platforms: wasi/wasm - \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3124ba74..b3468eeb 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -59,7 +59,7 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - + # Build and push k3d shim image - name: untar musl artifacts into ./deployments/k3d/.tmp/linux/(amd64|arm64) dir run: | @@ -72,8 +72,8 @@ jobs: with: push: true tags: | - ghcr.io/deislabs/containerd-wasm-shims/examples/k3d:${{ env.RELEASE_VERSION }} - ghcr.io/deislabs/containerd-wasm-shims/examples/k3d:latest + ghcr.io/${{ github.repository }}/examples/k3d:${{ env.RELEASE_VERSION }} + ghcr.io/${{ github.repository }}/examples/k3d:latest context: deployments/k3d platforms: linux/amd64,linux/arm64 build-args: |