Skip to content

Commit

Permalink
chore(release): add permission to read contents for image release (#12)
Browse files Browse the repository at this point in the history
and improve format
  • Loading branch information
evegufy authored and Phil91 committed Jul 2, 2024
1 parent 348a7ef commit 3153168
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ jobs:
needs: release-helm-chart
if: needs.release-helm-chart.outputs.version-check == 'false'
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -121,12 +122,12 @@ jobs:
# Automatically prepare image tags; See action docs for more examples.
# semver patter will generate tags like these for example :1 :1.2 :1.2.3
tags: |
type=ref,event=branch
type=ref,event=pr
type=raw,value=latest
type=semver,pattern={{version}},value=${{ needs.release-helm-chart.outputs.app-version }}
type=semver,pattern={{major}},value=${{ needs.release-helm-chart.outputs.app-version }}
type=semver,pattern={{major}}.{{minor}},value=${{ needs.release-helm-chart.outputs.app-version }}
type=ref,event=branch
type=ref,event=pr
type=raw,value=latest
type=semver,pattern={{version}},value=${{ needs.release-helm-chart.outputs.app-version }}
type=semver,pattern={{major}},value=${{ needs.release-helm-chart.outputs.app-version }}
type=semver,pattern={{major}}.{{minor}},value=${{ needs.release-helm-chart.outputs.app-version }}
- name: Build and push Docker images
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
Expand Down

0 comments on commit 3153168

Please sign in to comment.