File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7- paths-ignore :
8- - " values.yml"
97 workflow_dispatch :
108
119env :
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
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
You can’t perform that action at this time.
0 commit comments