-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (44 loc) · 1.91 KB
/
caller-workflow.yml
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
47
48
---
# caller-workflow.yml
# yamllint disable-line rule:truthy
on:
workflow_dispatch:
pull_request_target:
types: [opened, reopened, edited, synchronize]
branches:
- master
- main
jobs:
credentials:
runs-on: ubuntu-latest
outputs:
CREDENTIAL1: ${{ steps.credentials.outputs.CREDENTIAL1 }}
CREDENTIAL2: ${{ steps.credentials.outputs.CREDENTIAL2 }}
CLOUD_PASS: ${{ steps.credentials.outputs.CLOUD_PASS }}
CLOUDS_ENV_B64: ${{ steps.credentials.outputs.CLOUDS_ENV_B64 }}
# CLOUDS_YAML_B64: ${{ steps.credentials.outputs.CLOUDS_YAML_B64 }}
steps:
- name: Output encoded credentials
id: credentials
env:
CREDENTIAL1: ${{ secrets.CREDENTIAL1 }}
CREDENTIAL2: ${{ secrets.CREDENTIAL2 }}
CLOUD_PASS: ${{ secrets.CLOUD_PASS }}
CLOUDS_ENV_B64: ${{ secrets.CLOUDS_ENV_B64 }}
# CLOUDS_YAML_B64: ${{ secrets.CLOUDS_YAML_B64 }}
run: |
echo "CREDENTIAL1=$(echo $CREDENTIAL1 | base64 -w0 | base64 -w0)" >> $GITHUB_OUTPUT
echo "CREDENTIAL2=$(echo $CREDENTIAL2 | base64 -w0 | base64 -w0)" >> $GITHUB_OUTPUT
echo "CLOUD_PASS=$(echo $CLOUD_PASS | base64 -w0 | base64 -w0)" >> $GITHUB_OUTPUT
echo "CLOUDS_ENV_B64=$(echo $CLOUDS_ENV_B64 | base64 -w0 | base64 -w0)" >> $GITHUB_OUTPUT
# echo "CLOUDS_YAML_B64=$(echo $CLOUDS_ENV_B64 | base64 -w0 | base64 -w0)" >> $GITHUB_OUTPUT
call-reusable-workflow:
needs: credentials
uses: opendaylight/releng-sandbox/.github/workflows/reusable-workflow.yml@master
secrets:
env_vars: |
CREDENTIAL1=${{ needs.credentials.outputs.CREDENTIAL1 }}
CREDENTIAL2=${{ needs.credentials.outputs.CREDENTIAL2 }}
CLOUD_PASS=${{ needs.credentials.outputs.CLOUD_PASS }}
CLOUDS_ENV_B64=${{ needs.credentials.outputs.CLOUDS_ENV_B64 }}
# CLOUDS_YAML_B64=${{ needs.credentials.outputs.CLOUDS_YAML_B64 }}