Skip to content

Commit 8b88c81

Browse files
fix: use github_token for ghcr push
1 parent 85714a0 commit 8b88c81

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/release.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
jobs:
99
release:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: write
1114

1215
steps:
1316
- name: Generate GitHub token
@@ -48,15 +51,12 @@ jobs:
4851
name: ${{ github.ref }}
4952
token: ${{ steps.generate-github-token.outputs.token }}
5053

51-
- name: Build Docker image
52-
run: docker build -t ghcr.io/${{ github.repository }}:${{ github.ref_name }} .
53-
5454
- name: Login to GitHub Container Registry
5555
uses: docker/login-action@v3
5656
with:
5757
registry: ghcr.io
5858
username: ${{ github.actor }}
59-
password: ${{ steps.generate-github-token.outputs.token }}
59+
password: ${{ secrets.GITHUB_TOKEN }}
6060

6161
- name: Build and push
6262
uses: docker/build-push-action@v6

plugin.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: "yamldiff"
2-
version: 0.0.4
2+
version: 0.0.3
33
usage: "Gets the differences between a helm values.yaml file and the upstream"
44
description: "Gets the differences between a helm values.yaml file and the upstream"
55
ignoreFlags: false

0 commit comments

Comments
 (0)