Skip to content

Commit 85fda1f

Browse files
committed
Try new strategy
1 parent f3b4e6f commit 85fda1f

1 file changed

Lines changed: 12 additions & 27 deletions

File tree

.github/workflows/refresh.yaml

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,43 +3,28 @@ on:
33
push:
44

55
jobs:
6-
flexctl:
7-
runs-on: self-hosted
8-
container: mulesoft/flex-gateway:latest
9-
10-
steps:
11-
- name: Retrieve secrets from Keeper
12-
id: ksecrets
13-
uses: Keeper-Security/ksm-action@master
14-
with:
15-
keeper-secret-config: ${{ secrets.KSM_CONFIG }}
16-
secrets: |-
17-
lv4qSA1x9r_hBnPhx-HX_A/file/mulesoft_test_reg.yml > file:/registration/registration.yaml
18-
LXdIN2HmAPOOPec9x79Iew/field/login > env:FLEXCTL_LOGIN
19-
LXdIN2HmAPOOPec9x79Iew/field/password > env:FLEXCTL_PASSWORD
20-
- name: Inspect registration
21-
run: |
22-
echo $FLEXCTL_PASSWORD
23-
echo $FLEXCTL_LOGIN
24-
flexctl registration inspect
25-
26-
get_cert:
6+
refresh:
277
runs-on: self-hosted
288
container: buildpack-deps:bookworm
299

3010
steps:
11+
- name: Create registration directory
12+
run: |
13+
mkdir /tmp/fg_cfg
3114
- name: Retrieve secrets from Keeper
3215
id: ksecrets
3316
uses: Keeper-Security/ksm-action@master
3417
with:
3518
keeper-secret-config: ${{ secrets.KSM_CONFIG }}
3619
secrets: |-
37-
lv4qSA1x9r_hBnPhx-HX_A/file/mulesoft_test_reg.yml > file:mulesoft_test_reg.yml
20+
lv4qSA1x9r_hBnPhx-HX_A/file/mulesoft_test_reg.yml > file:/tmp/fg_cfg/registration.yaml
3821
LXdIN2HmAPOOPec9x79Iew/field/login > env:FLEXCTL_LOGIN
3922
LXdIN2HmAPOOPec9x79Iew/field/password > env:FLEXCTL_PASSWORD
40-
- name: List home dir
23+
- name: Docker pull flex-Gateway
24+
run: |
25+
docker pull mulesoft/flex-gateway:latest
26+
- name: Check registration
4127
run: |
42-
ls
43-
pwd
44-
echo $FLEXCTL_PASSWORD
45-
echo $FLEXCTL_LOGIN
28+
docker run --entrypoint flexctl \
29+
-v "/tmp/fg_cfg":/registration mulesoft/flex-gateway \
30+
registration inspect

0 commit comments

Comments
 (0)