-
Notifications
You must be signed in to change notification settings - Fork 2
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
1036f2b
commit ac0657b
Showing
1 changed file
with
21 additions
and
0 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 |
---|---|---|
|
@@ -30,3 +30,24 @@ jobs: | |
push: true | ||
tags: ${{ format('quay.mi2.ai/piotrpiatyszek/limecraft:{0}', steps.gettag.outputs.tag) }} | ||
context: '.' | ||
- name: Checkout namespace repo | ||
uses: actions/checkout@v2 | ||
with: | ||
ssh-key: ${{ secrets.NAMESPACE_REPO_KEY }} | ||
path: 'namespace' | ||
repository: 'MI-Akira/namespace-limecraft-demo' | ||
- name: Update tag | ||
env: | ||
TAG: ${{ steps.gettag.outputs.tag }} | ||
run: | | ||
cat namespace/kustomization/deployment.yaml |sed "s/image: quay.io\/piotrpiatyszek\/limecraft.*/image: quay.io\/piotrpiatyszek\/limecraft:$TAG/g" > namespace/kustomization/deployment.yaml.new | ||
mv namespace/kustomization/deployment.yaml.new namespace/kustomization/deployment.yaml | ||
- uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.NAMESPACE_REPO_KEY }} | ||
- name: Commit new version | ||
uses: EndBug/add-and-commit@v8 | ||
with: | ||
message: "Update version" | ||
cwd: './namespace' | ||
add: 'kustomization/deployment.yaml' |