Skip to content

Commit 57c58f7

Browse files
committed
Add debug key
1 parent a481edf commit 57c58f7

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/extra_vars/arcus.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@ image_build_attach_floating_ip: true
3333
image_build_floating_ip_network: "CUDN-Internet"
3434
image_build_source_image_id: "2a77064b-be40-4065-b0f4-4d5417a4460a"
3535
image_build_security_group_id: "486dfc85-099b-4bbb-9375-60f320a7de18"
36+
# Debug
37+
image_build_ssh_private_key_file: "{{ lookup('ansible.builtin.env', 'DEBUG_SSH_KEY_PATH') }}"
38+
image_build_ssh_keypair_name: matta-stack
39+
image_build_packer_extra_args: "-debug -on-error=abort"

.github/workflows/build-image-deploy.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
OS_CLOUD: openstack
2727
OS_CLIENT_CONFIG_FILE: ${{ github.workspace }}/clouds.yaml
2828
EXTRA_VARS_FILE: .github/extra_vars/arcus.yml
29+
DEBUG_SSH_KEY_PATH: "~/.ssh/id_rsa_debug"
2930
steps:
3031
- name: Checkout repository
3132
uses: actions/checkout@v3
@@ -34,6 +35,14 @@ jobs:
3435

3536
- name: Install ansible etc
3637
run: dev/setup-env.sh
38+
39+
- name: Write debug SSH key
40+
run: |
41+
mkdir -p $(dirname $DEBUG_SSH_KEY_PATH)
42+
echo "${DEBUG_SSH_KEY}" > ${DEBUG_SSH_KEY_PATH}
43+
chmod 0600 ${DEBUG_SSH_KEY_PATH}
44+
env:
45+
DEBUG_SSH_KEY: ${{ secrets.DEBUG_SSH_KEY }}
3746

3847
- name: Write clouds.yaml
3948
run: |

0 commit comments

Comments
 (0)