Skip to content

Commit

Permalink
feat(26): Disable docker push
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Lee committed Dec 26, 2024
1 parent 0ee145c commit 110fb7a
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,27 +42,27 @@ jobs:
- name: Get Current Version
id: version
run: echo "::set-output name=version::$(echo $GITHUB_REF | cut -d / -f 3)"
- name: Build and push Docker image
id: push
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
target: prod
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
build-args: |
COMMIT=${{ github.sha }}
VERSION=${{ steps.version.outputs.version }}
DATE=${{ steps.date.outputs.date }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
#- name: Build and push Docker image
# id: push
# uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
# with:
# context: .
# target: prod
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
# platforms: linux/amd64,linux/arm64
# build-args: |
# COMMIT=${{ github.sha }}
# VERSION=${{ steps.version.outputs.version }}
# DATE=${{ steps.date.outputs.date }}
#
#- name: Generate artifact attestation
# uses: actions/attest-build-provenance@v1
# with:
# subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
# subject-digest: ${{ steps.push.outputs.digest }}
# push-to-registry: true

goreleaser:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 110fb7a

Please sign in to comment.