Skip to content

Commit a3a2035

Browse files
committed
ci: fix tag update
1 parent 83297bc commit a3a2035

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

.github/workflows/package.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
steps:
2424
- name: Checkout repository
2525
uses: actions/checkout@v5
26+
with:
27+
token: ${{ secrets.TOKEN }}
28+
2629
- name: Log in to the Container registry
2730
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
2831
with:
@@ -42,17 +45,20 @@ jobs:
4245
push: true
4346
tags: ${{ steps.meta.outputs.tags }}
4447
labels: ${{ steps.meta.outputs.labels }}
45-
- name: Update tag in values.yaml
48+
- name: install yq and setup git
4649
run: |
4750
pip install yq
48-
yq e -i '.image.tag = "${{ steps.push.outputs.digest }}"' values.yaml
4951
5052
git config --global user.name "github-actions[bot]"
5153
git config --global user.email "username@users.noreply.github.com"
54+
- name: Update tag in values.yaml
55+
run: |
56+
57+
python -m yq -Y --indentless --in-place '.image.tag = "${{ steps.push.outputs.digest }}"' values.yml
5258
53-
git add values.yaml
59+
git add values.yml
5460
git commit -m "Update image tag to ${{ steps.push.outputs.digest }}"
55-
git push
61+
git push origin main
5662
5763
- name: Generate artifact attestation
5864
uses: actions/attest-build-provenance@v3

values.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
replicaCount: 1
22
name: nanoforge-docs
33
image:
4-
repository: "ghcr.io/nanoforge-dev/docs"
5-
tag: "main"
6-
imagePullSecret: "nanoforge-docker-token"
4+
repository: ghcr.io/nanoforge-dev/docs
5+
tag: sha256:7c45e4bcc7ba3913c12aca1d0c4556b3c9a4a001460a93795d109f5fbadfda04
6+
imagePullSecret: nanoforge-docker-token
77
routes:
88
- port: 80
9-
match: "Host(`docs.nanoforge.eu`)"
9+
match: Host(`docs.nanoforge.eu`)

0 commit comments

Comments
 (0)