Skip to content

Commit

Permalink
don't need to strip the prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
leonitousconforti committed May 8, 2024
1 parent 0b29c21 commit 0a2ee7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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://[email protected]: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.
Expand All @@ -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://[email protected]: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 }}

0 comments on commit 0a2ee7c

Please sign in to comment.