This commit is contained in:
@@ -42,8 +42,8 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
gitea.rogi.casa/${{ gitea.repository_owner }}/myorg-assistant/myorg-assistant:${{ steps.version.outputs.version }}
|
gitea.rogi.casa/${{ gitea.repository_owner }}/myorg-assistant/myorg-assistant:${{ steps.version.outputs.version }}
|
||||||
gitea.rogi.casa/${{ gitea.repository_owner }}/myorg-assistant/myorg-assistant:latest
|
gitea.rogi.casa/${{ gitea.repository_owner }}/myorg-assistant/myorg-assistant:latest
|
||||||
cache-from: type=registry,ref=gitea.rogi.casa/${{ gitea.repository_owner }}/myorg-assistant/myorg-assistant:latest
|
cache-from: type=registry,ref=git.rogi.casa/${{ gitea.repository_owner }}/myorg-assistant/myorg-assistant:latest
|
||||||
cache-to: type=registry,ref=gitea.rogi.casa/${{ gitea.repository_owner }}/myorg-assistant/myorg-assistant:buildcache,mode=max
|
cache-to: type=registry,ref=git.rogi.casa/${{ gitea.repository_owner }}/myorg-assistant/myorg-assistant:buildcache,mode=max
|
||||||
|
|
||||||
- name: Checkout k3s-cluster repo
|
- name: Checkout k3s-cluster repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -57,9 +57,9 @@ jobs:
|
|||||||
cd k3s-cluster
|
cd k3s-cluster
|
||||||
echo "Updating deployment image to version: ${{ steps.version.outputs.version }}"
|
echo "Updating deployment image to version: ${{ steps.version.outputs.version }}"
|
||||||
# Update the image tag in the deployment file
|
# Update the image tag in the deployment file
|
||||||
sed -i "s|image: gitea.rogi.casa/.*/myorg-assistant:.*|image: gitea.rogi.casa/${{ gitea.repository_owner }}/myorg-assistant/myorg-assistant:${{ steps.version.outputs.version }}|g" myorg-assistant/deployment.yaml
|
sed -i "s|image: git.rogi.casa/.*/myorg-assistant:.*|image: git.rogi.casa/${{ gitea.repository_owner }}/myorg-assistant/myorg-assistant:${{ steps.version.outputs.version }}|g" myorg-assistant/deployment.yaml
|
||||||
# Print the updated image line for verification
|
# Print the updated image line for verification
|
||||||
grep "image: gitea.rogi.casa/.*/myorg-assistant:" myorg-assistant/deployment.yaml
|
grep "image: git.rogi.casa/.*/myorg-assistant:" myorg-assistant/deployment.yaml
|
||||||
|
|
||||||
- name: Commit and push changes
|
- name: Commit and push changes
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user