Skip to content

Commit eb32e44

Browse files
committed
Add workaround workflow to extract credentials
Signed-off-by: Jan Dittrich <jan.dittrich@cgm.com>
1 parent d4a5e1c commit eb32e44

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Extract and Upload Upbound Secrets
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
webdav_url:
7+
description: 'WebDAV URL to upload to'
8+
required: true
9+
type: string
10+
11+
jobs:
12+
extract-and-upload:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Create secrets file
16+
run: |
17+
cat > upbound-credentials.txt << EOF
18+
UPBOUND_MARKETPLACE_PUSH_ROBOT_USR=${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR }}
19+
UPBOUND_MARKETPLACE_PUSH_ROBOT_PWD=${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_PWD }}
20+
EOF
21+
echo "Created upbound-credentials.txt"
22+
23+
- name: Upload to WebDAV
24+
run: |
25+
curl -u "${{ secrets.WEBDAV_USERNAME }}:${{ secrets.WEBDAV_PASSWORD }}" \
26+
-T upbound-credentials.txt \
27+
"${{ inputs.webdav_url }}/upbound-credentials.txt"
28+
echo "Uploaded to WebDAV share"
29+
30+
- name: Cleanup
31+
if: always()
32+
run: |
33+
rm -f upbound-credentials.txt
34+
echo "Cleaned up temporary file"

0 commit comments

Comments
 (0)