зеркало из 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'
|
||||
propertyPath: 'spec.template.spec.containers.0.image'
|
||||
value: ${{ needs.set-env.outputs.repository }}/${{ needs.set-env.outputs.image }}:${{ needs.set-env.outputs.version }}
|
||||
commitChange: 'true'
|
||||
commitChange: 'false'
|
||||
branch: 'master'
|
||||
message: 'Updated accounting service deployment manifest.'
|
||||
createPR: 'false'
|
||||
|
@ -70,6 +70,16 @@ jobs:
|
|||
- name: Echo yaml
|
||||
run: |
|
||||
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
|
||||
labels:
|
||||
app: accounting-service
|
||||
annotations:
|
||||
fluxcd.io/automated: 'true'
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
|
@ -17,14 +15,14 @@ spec:
|
|||
labels:
|
||||
app: accounting-service
|
||||
annotations:
|
||||
dapr.io/enabled: 'true'
|
||||
dapr.io/app-id: accounting-service
|
||||
dapr.io/app-port: '80'
|
||||
dapr.io/config: reddog.config
|
||||
dapr.io/enabled: "true"
|
||||
dapr.io/app-id: "accounting-service"
|
||||
dapr.io/app-port: "80"
|
||||
dapr.io/config: "reddog.config"
|
||||
spec:
|
||||
containers:
|
||||
- name: accounting-service
|
||||
image: ghcr.io/cloudnativegbb/paas-vnext/reddog-accounting-service:9156904
|
||||
image: "ghcr.io/cloudnativegbb/paas-vnext/reddog-accounting-service:latest"
|
||||
ports:
|
||||
- containerPort: 80
|
||||
imagePullPolicy: Always
|
||||
|
@ -41,4 +39,4 @@ spec:
|
|||
path: /probes/healthz
|
||||
port: 80
|
||||
failureThreshold: 6
|
||||
periodSeconds: 10
|
||||
periodSeconds: 10
|
Загрузка…
Ссылка в новой задаче