From 2be6fb58f7fdbcaf256d66c26bffbd8942ed2d2d Mon Sep 17 00:00:00 2001 From: David Justice Date: Thu, 1 Sep 2022 15:58:42 -0400 Subject: [PATCH] update the login and build-push actions (#4) --- .github/workflows/release.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 307784bd..145ecc7e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,17 +67,20 @@ jobs: - name: setup buildx uses: docker/setup-buildx-action@v1 - name: login to GitHub container registry - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - context: images/spin - name: build and push Spin hello world - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: push: true tags: | ghcr.io/deislabs/containerd-wasm-shims/examples/spin-rust-hello:${{ env.RELEASE_VERSION }} ghcr.io/deislabs/containerd-wasm-shims/examples/spin-rust-hello:latest - context: images/spin \ No newline at end of file + context: images/spin + - name: clear + if: always() + run: | + rm -f ${HOME}/.docker/config.json