Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yongenaelf authored Jun 7, 2024
1 parent 4666196 commit ff15fbd
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ jobs:
name: Build and Push Docker image to Docker Hub
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- name: Check out the repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -65,13 +62,6 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ secrets.DOCKER_USERNAME }}/${{ github.event.repository.name }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

- name: Set short git commit SHA
id: vars
run: |
Expand All @@ -94,4 +84,4 @@ jobs:
appProject: 'factory',
commit_sha: 'sha-${{ steps.vars.outputs.short_sha }}',
}
})
})

0 comments on commit ff15fbd

Please sign in to comment.