Skip to content

Commit

Permalink
Add updating version to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrpiatyszek committed Mar 22, 2022
1 parent 1036f2b commit ac0657b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit ac0657b

Please sign in to comment.