mirror of
https://github.com/dat515-2025/Group-8.git
synced 2026-03-22 06:57:47 +01:00
feat(infrastructure): add workers as separate deployment, update workflow
This commit is contained in:
22
.github/workflows/workflow.yml
vendored
22
.github/workflows/workflow.yml
vendored
@@ -35,16 +35,20 @@ jobs:
|
||||
- name: Get image digest
|
||||
run: echo "IMAGE_DIGEST=${{ steps.build.outputs.digest }}" >> $GITHUB_ENV
|
||||
|
||||
- name: Update manifest with new image digest
|
||||
- name: Update manifests with new image digest
|
||||
uses: OpsVerseIO/image-updater-action@0.1.0
|
||||
with:
|
||||
valueFile: 'deployment/guestbook-ui-deployment.yaml'
|
||||
propertyPath: 'spec.template.spec.containers[0].image'
|
||||
value: ${{ secrets.DOCKER_USER }}/cc-app-demo@${{ env.IMAGE_DIGEST }}
|
||||
commitChange: true
|
||||
message: "${{ github.event.head_commit.message }}"
|
||||
branch: main
|
||||
targetBranch: main
|
||||
createPR: 'false'
|
||||
masterBranchName: 'main'
|
||||
targetBranch: 'main'
|
||||
branch: 'main'
|
||||
message: 'Update image digest in manifests'
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
changes: |
|
||||
{
|
||||
"deployment/app-demo-deployment.yaml": {
|
||||
"spec.template.spec.containers[0].image": "${{ secrets.DOCKER_USER }}/cc-app-demo@${{ env.IMAGE_DIGEST }}"
|
||||
},
|
||||
"deployment/app-demo-worker-deployment.yaml": {
|
||||
"spec.template.spec.containers[0].image": "${{ secrets.DOCKER_USER }}/cc-app-demo@${{ env.IMAGE_DIGEST }}"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user