Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ inputs:
required: false
default: ""
ext-csharp-version:
description: "Version of Extension Csharp to deploy"
description: "Version of worker to deploy"
required: false
default: ""
worker-image:
description: "Image for the worker"
required: false
default: "dockerhubaneo/armonik_worker_dll"
prefix:
description: "Prefix for the deployment"
required: false
Expand Down Expand Up @@ -81,6 +85,7 @@ runs:
MTLS: ${{ inputs.mtls }}
GENCERT: ${{ inputs.generate-client-cert }}
CUSTOM_CA: ${{ inputs.custom-client-ca }}
WORKER: ${{ inputs.worker-image }}
run: |
set -ex
ingress() {
Expand All @@ -94,7 +99,16 @@ runs:
mv .extra.tfvars.json extra.tfvars.json
fi
}
worker() {
local worker
worker="$1"
jq --arg worker "$worker" '.armonik_images.extcsharp=[$worker]' extra.tfvars.json > .extra.tfvars.json
mv .extra.tfvars.json extra.tfvars.json
}
ingress "$TLS" "$MTLS" "$GENCERT" "$CUSTOM_CA"
jq -s '.[0] * .[1]' versions.tfvars.json extra.tfvars.json > .extra.tfvars.json
mv .extra.tfvars.json extra.tfvars.json
worker $WORKER
- id: apply
name: Apply
shell: bash
Expand Down