-
Notifications
You must be signed in to change notification settings - Fork 22
46 lines (39 loc) · 1.56 KB
/
Copy pathload-configuration.yml
File metadata and controls
46 lines (39 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Load KurrentDB Runtime Configuration
on:
workflow_call:
inputs:
runtime:
description: "The runtime's name. Current options are: `ci`, `previous-lts`, `latest`"
type: string
outputs:
runtime:
description: The runtime's name
value: ${{ inputs.runtime }}
registry:
description: The Docker registry
value: ${{ jobs.load.outputs.registry }}
image:
description: The Docker image
value: ${{ jobs.load.outputs.image }}
tag:
description: The Docker image tag
value: ${{ jobs.load.outputs.tag }}
full_image_name:
description: The full Docker image name (including registry, image, and tag)
value: ${{ jobs.load.outputs.full_image_name }}
jobs:
load:
runs-on: ubuntu-latest
outputs:
registry: ${{ steps.set.outputs.registry }}
image: ${{ steps.set.outputs.image }}
tag: ${{ steps.set.outputs.tag }}
full_image_name: ${{ steps.set.outputs.full_image_name }}
steps:
- name: Set KurrentDB Runtime Configuration Properties
id: set
run: |
echo "registry=${{ fromJSON(vars.KURRENTDB_DOCKER_IMAGES)[inputs.runtime].registry }}" >> $GITHUB_OUTPUT
echo "tag=${{ fromJSON(vars.KURRENTDB_DOCKER_IMAGES)[inputs.runtime].tag }}" >> $GITHUB_OUTPUT
echo "image=${{ fromJSON(vars.KURRENTDB_DOCKER_IMAGES)[inputs.runtime].image }}" >> $GITHUB_OUTPUT
echo "full_image_name=${{ fromJSON(vars.KURRENTDB_DOCKER_IMAGES)[inputs.runtime].fullname }}" >> $GITHUB_OUTPUT