This repository has been archived by the owner on Nov 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d4637c5
commit 4bc8286
Showing
1 changed file
with
16 additions
and
17 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 |
---|---|---|
|
@@ -54,26 +54,25 @@ jobs: | |
rm deployment-api.yaml | ||
mv deployment-api-NEW.yaml deployment-api.yaml | ||
# - name: Update API Docker Image | ||
# uses: fjogeleit/[email protected] | ||
# with: | ||
# valueFile: 'repo/manifests/registry/base/deployment-api.yaml' | ||
# propertyPath: 'spec.template.spec.containers.0.image' | ||
# value: ${{ env.REGISTRY_API_DOCKER_IMAGE }} | ||
# commitChange: false | ||
|
||
# - name: Update UI Docker Image | ||
# uses: fjogeleit/[email protected] | ||
# with: | ||
# valueFile: 'repo/manifests/registry/base/deployment-ui.yaml' | ||
# propertyPath: 'spec.template.spec.containers[:1].image' | ||
# value: ${{ env.REGISTRY_UI_DOCKER_IMAGE }} | ||
# commitChange: false | ||
- name: Update UI Docker Image | ||
run: | | ||
cd repo/manifests/registry/base/ | ||
yaml set deployment-ui.yaml spec.template.spec.containers.0.image ${{ env.REGISTRY_UI_DOCKER_IMAGE }} > deployment-ui-NEW.yaml | ||
rm deployment-ui.yaml | ||
mv deployment-ui-NEW.yaml deployment-ui.yaml | ||
- name: Cat Changed Deployment | ||
- name: Verify Changed Deployment | ||
run: | | ||
cd repo | ||
echo "---" | ||
cat manifests/registry/base/deployment-api.yaml | ||
echo "---" | ||
git status | ||
cat manifests/registry/base/deployment-ui.yaml | ||
echo "---" | ||
- name: Commit Changes | ||
run: | | ||
cd repo | ||
git add . | ||
git commit -m 'Automatic upgrade of Registry container images.' | ||
git push origin main |