Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
Dot index syntax works, so moving step back to after the image publis…
Browse files Browse the repository at this point in the history
…hing
  • Loading branch information
mcasperson committed Jan 13, 2022
1 parent e5ea90a commit c10f91c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/audit-service.yaml
Expand Up @@ -4,6 +4,7 @@ on:
push:
paths:
- 'dotnet/Audit.Service/**'
- '!dotnet/Audit.Service/k8s/**'
workflow_dispatch:

jobs:
Expand Down
20 changes: 10 additions & 10 deletions java/products-service/github/action.yml
Expand Up @@ -56,16 +56,6 @@ runs:
shell: bash
working-directory: java/products-service

# Update the deployment.yaml file to trigger a GitOps deployment
- name: Update values.yaml
uses: fjogeleit/yaml-update-action@master
with:
valueFile: 'java/products-service/k8s/deployment.yaml'
propertyPath: 'spec.template.spec.containers.0.image'
value: "octopussamples/octopub-products:0.1.${{ inputs.run_number }}${{ env.BRANCH_NAME != 'master' && format('-{0}', env.BRANCH_NAME) || '' }}"
message: "Updated image reference"
createPR: false

- name: Install modules
run: ./mvnw --batch-mode install
shell: bash
Expand Down Expand Up @@ -155,6 +145,16 @@ runs:
shell: bash
working-directory: java/products-service
# Update the deployment.yaml file to trigger a GitOps deployment
- name: Update values.yaml
uses: fjogeleit/yaml-update-action@master
with:
valueFile: 'java/products-service/k8s/deployment.yaml'
propertyPath: 'spec.template.spec.containers.0.image'
value: "octopussamples/octopub-products:0.1.${{ inputs.run_number }}${{ env.BRANCH_NAME != 'master' && format('-{0}', env.BRANCH_NAME) || '' }}"
message: "Updated image reference"
createPR: false

- name: Generate Octopus Deploy build information
uses: xo-energy/action-octopus-build-information@v1.1.2
with:
Expand Down

0 comments on commit c10f91c

Please sign in to comment.