Skip to content

Commit

Permalink
chore: update steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Siumauricio committed May 5, 2024
1 parent 2588969 commit 40922e8
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/multi-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,28 +50,15 @@ jobs:
cp .env.production.example .env.production
-
name: Build and push by digest
id: build
name: Build and push by tag
uses: docker/build-push-action@v5
with:
context: .
platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
-
name: Export digest
run: |
mkdir -p /tmp/digests
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
-
name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digests-${{ env.PLATFORM_PAIR }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
push: true
tags: ${{ env.REGISTRY_IMAGE }}


# merge:
# runs-on: ubuntu-latest
Expand Down

0 comments on commit 40922e8

Please sign in to comment.