@@ -27,19 +27,36 @@ jobs:
2727 - name : Docker pull flex-Gateway
2828 run : |
2929 docker pull mulesoft/flex-gateway:latest
30- - name : Check registration
30+ - name : Check current registration
3131 run : |
3232 docker run --rm --entrypoint flexctl \
3333 -v "${{ runner.temp }}/registration":/tmp/registration mulesoft/flex-gateway \
3434 registration inspect -f /tmp/registration/cur_registration.yaml
35+ - name : Renew registration
36+ run : |
37+ docker run --rm --entrypoint flexctl \
38+ -u $UID -v "${{ runner.temp }}/registration":/tmp/registration
39+ mulesoft/flex-gateway \
40+ registration renew \
41+ --client-id=$FLEXCTL_LOGIN \
42+ --client-secret=$FLEXCTL_PASSWORD \
43+ --output-directory=/tmp/registration \
44+ /tmp/registration/cur_registration.yaml
45+ - name : List temp dir
46+ run : |
47+ ls ${{ runner.temp }}
48+ - name : Check new registration
49+ run : |
50+ docker run --rm --entrypoint flexctl \
51+ -v "${{ runner.temp }}/registration":/tmp/registration mulesoft/flex-gateway \
52+ registration inspect -f /tmp/registration/registration.yaml
3553 - name : Docker pull keeper
3654 run : |
3755 docker pull keeper/keeper-secrets-manager-cli:latest
38- - name : Test upload to Keeper
56+ - name : Upload new cert to Keeper
3957 run : |
40- echo "bogus2" > ${{ runner.temp }}/registration/temp.txt
4158 docker run --rm -e KSM_CONFIG=${{ secrets.KSM_CONFIG }} \
4259 -v "${{ runner.temp }}/registration":/tmp/registration \
4360 keeper/keeper-secrets-manager-cli:latest ksm secret upload \
44- -u KOvpmbsoepm69o3k7iAcVQ --file /tmp/registration/temp.txt \
61+ -u KOvpmbsoepm69o3k7iAcVQ --file /tmp/registration/registration.yaml \
4562 --title registration.yaml
0 commit comments