-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update staging deployment configuration
- Loading branch information
1 parent
611008e
commit d608986
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,9 @@ jobs: | |
|
||
update-stage-image: | ||
name: Update staging deployment | ||
needs: upload-stage-image | ||
needs: | ||
- build-multi-architecture | ||
- upload-stage-image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate a token | ||
|
@@ -92,10 +94,11 @@ jobs: | |
- name: Update staging deployment | ||
run: | | ||
image_value="${{ needs.build-multi-architecture.outputs.image }}" | ||
yq e ".forge.fileStore.image = \"$image_value\"" -i ./cloudproject/staging/flowfuse-values.yaml | ||
cd ./cloudproject | ||
yq e ".forge.fileStore.image = \"$image_value\"" -i ./staging/flowfuse-values.yaml | ||
git config --global user.name 'GitHub Actions' | ||
git config --global user.email '[email protected]' | ||
git add ./cloudproject/staging/flowfuse-values.yaml | ||
git add ./staging/flowfuse-values.yaml | ||
git commit -m "Update staging image value" | ||
- name: Push changes | ||
uses: ad-m/[email protected] | ||
|