зеркало из https://github.com/Azure/reddog-code.git
Updates to github actions
This commit is contained in:
Родитель
aaa5fcdaab
Коммит
14871022ce
|
@ -62,7 +62,7 @@ jobs:
|
||||||
valueFile: 'manifests/branch/base/deployments/accounting-service.yaml'
|
valueFile: 'manifests/branch/base/deployments/accounting-service.yaml'
|
||||||
propertyPath: 'spec.template.spec.containers.0.image'
|
propertyPath: 'spec.template.spec.containers.0.image'
|
||||||
value: ${{ needs.set-env.outputs.repository }}/${{ needs.set-env.outputs.image }}:${{ needs.set-env.outputs.version }}
|
value: ${{ needs.set-env.outputs.repository }}/${{ needs.set-env.outputs.image }}:${{ needs.set-env.outputs.version }}
|
||||||
commitChange: 'true'
|
commitChange: 'false'
|
||||||
branch: 'master'
|
branch: 'master'
|
||||||
message: 'Updated accounting service deployment manifest.'
|
message: 'Updated accounting service deployment manifest.'
|
||||||
createPR: 'false'
|
createPR: 'false'
|
||||||
|
@ -70,6 +70,16 @@ jobs:
|
||||||
- name: Echo yaml
|
- name: Echo yaml
|
||||||
run: |
|
run: |
|
||||||
cat manifests/branch/base/deployments/accounting-service.yaml
|
cat manifests/branch/base/deployments/accounting-service.yaml
|
||||||
|
- name: Promote deployment
|
||||||
|
uses: dmnemec/copy_file_to_another_repo_action
|
||||||
|
env:
|
||||||
|
API_TOKEN_GITHUB: ${{ secrets.CR_PAT }}
|
||||||
|
with:
|
||||||
|
source_file: manifests/branch/base/deployments/accounting-service.yaml
|
||||||
|
destination_repo: Azure/reddog-retail-demo
|
||||||
|
destination_folder: manifests/branch/base/deployments
|
||||||
|
user_email: lynn.orrell@gmail.com
|
||||||
|
user_name: lynn-orrell
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,6 @@ metadata:
|
||||||
namespace: reddog-branch
|
namespace: reddog-branch
|
||||||
labels:
|
labels:
|
||||||
app: accounting-service
|
app: accounting-service
|
||||||
annotations:
|
|
||||||
fluxcd.io/automated: 'true'
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
|
@ -17,14 +15,14 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app: accounting-service
|
app: accounting-service
|
||||||
annotations:
|
annotations:
|
||||||
dapr.io/enabled: 'true'
|
dapr.io/enabled: "true"
|
||||||
dapr.io/app-id: accounting-service
|
dapr.io/app-id: "accounting-service"
|
||||||
dapr.io/app-port: '80'
|
dapr.io/app-port: "80"
|
||||||
dapr.io/config: reddog.config
|
dapr.io/config: "reddog.config"
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: accounting-service
|
- name: accounting-service
|
||||||
image: ghcr.io/cloudnativegbb/paas-vnext/reddog-accounting-service:9156904
|
image: "ghcr.io/cloudnativegbb/paas-vnext/reddog-accounting-service:latest"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
@ -41,4 +39,4 @@ spec:
|
||||||
path: /probes/healthz
|
path: /probes/healthz
|
||||||
port: 80
|
port: 80
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
Загрузка…
Ссылка в новой задаче