From 0a2ee7c40a956cdc3c552763f4a69d44fb735e57 Mon Sep 17 00:00:00 2001 From: Leo Conforti Date: Wed, 8 May 2024 06:49:11 +0000 Subject: [PATCH] don't need to strip the prefix --- .github/workflows/ci.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 277dfdc..62d7b59 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -90,12 +90,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: echo "AUTO_GOLD_BITS_SHA=$(docker buildx imagetools inspect --format "{{json .Manifest.Digest}}" ghcr.io/leonitousconforti/tinyburg/authproxy:latest | xargs | sed 's/sha256://')" >> $GITHUB_ENV + - run: echo "AUTHPROXY_SHA=$(docker buildx imagetools inspect --format "{{json .Manifest.Digest}}" ghcr.io/leonitousconforti/tinyburg/authproxy:latest | xargs)" >> $GITHUB_ENV - uses: dokku/github-action@master with: ssh_private_key: ${{ secrets.AUTHPROXY_DOKKU_KEY }} git_remote_url: "ssh://dokku@authproxy.tinyburg.app:22/authproxy" - deploy_docker_image: ghcr.io/leonitousconforti/tinyburg/authproxy:${{ env.AUTO_GOLD_BITS_SHA }} + deploy_docker_image: ghcr.io/leonitousconforti/tinyburg/authproxy@${{ env.AUTHPROXY_SHA }} # In order to deploy the auto-gold-bits docker image, we do the exact same # steps as we did for the authproxy docker image but using the auto-gold-bits. @@ -107,9 +107,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: echo "AUTO_GOLD_BITS_SHA=$(docker buildx imagetools inspect --format "{{json .Manifest.Digest}}" ghcr.io/leonitousconforti/tinyburg/auto-gold-bits:latest | xargs | sed 's/sha256://')" >> $GITHUB_ENV + - run: echo "AUTO_GOLD_BITS_SHA=$(docker buildx imagetools inspect --format "{{json .Manifest.Digest}}" ghcr.io/leonitousconforti/tinyburg/auto-gold-bits:latest | xargs)" >> $GITHUB_ENV - uses: dokku/github-action@master with: ssh_private_key: ${{ secrets.PLAYGROUND_DOKKU_KEY }} git_remote_url: "ssh://dokku@playground.tinyburg.app:22/auto-gold-bits" - deploy_docker_image: ghcr.io/leonitousconforti/tinyburg/auto-gold-bits:${{ env.AUTO_GOLD_BITS_SHA }} + deploy_docker_image: ghcr.io/leonitousconforti/tinyburg/auto-gold-bits@${{ env.AUTO_GOLD_BITS_SHA }}