Skip to content

Commit 0dc6d85

Browse files
committed
ci: setup sha pushing on ci
1 parent 8bc9336 commit 0dc6d85

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

.github/workflows/package.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
paths-ignore:
8-
- "values.yml"
97
workflow_dispatch:
108

119
env:
@@ -32,6 +30,7 @@ jobs:
3230
registry: ${{ env.REGISTRY }}
3331
username: ${{ github.actor }}
3432
password: ${{ secrets.GITHUB_TOKEN }}
33+
3534
- name: Build and push Docker image
3635
id: push
3736
uses: docker/build-push-action@v7
@@ -41,6 +40,14 @@ jobs:
4140
tags: |
4241
${{ env.REGISTRY }}/nanoforge-dev/docs:latest
4342
${{ env.REGISTRY }}/nanoforge-dev/docs:${{ github.sha }}
43+
44+
- name: checkout cloud
45+
uses: actions/checkout@v5
46+
with:
47+
repository: nanoforge-dev/cloud-iac
48+
token: ${{ secrets.TOKEN }}
49+
path: cloud-tmp
50+
4451
- name: install yq and setup git
4552
run: |
4653
pip install yq
@@ -50,10 +57,11 @@ jobs:
5057
- name: Update tag in values.yaml
5158
run: |
5259
53-
python -m yq -Y --indentless --in-place '.image.tag = "${{ github.sha }}"' values.yml
60+
cd cloud-tmp
61+
python -m yq -Y --indentless --in-place '.image.tag = "${{ github.sha }}"' kubernetes/nanoforge/docs-override.yml
5462
55-
git add values.yml
56-
git commit -m "Update image tag to ${{ github.sha }}"
63+
git add kubernetes/nanoforge/docs-override.yml
64+
git commit -m "Update docs image tag to ${{ github.sha }}"
5765
git push origin main
5866
5967
- name: Generate artifact attestation

0 commit comments

Comments
 (0)