ci/cd - fix ssh command for ARM builder

This commit is contained in:
florian 2023-04-30 10:31:52 +02:00
parent a55a0df5de
commit 6cecc70c32
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
2 changed files with 5 additions and 3 deletions

View File

@ -62,5 +62,7 @@ jobs:
SSH_IP: ${{ fromJson(steps.scw.outputs.json).public_ip.address }}
SSH_CONFIG: ${{ secrets.ARM_SSH_CONFIG }}
- name: Install Docker
run: scw instance server ssh ${{ fromJson(steps.scw.outputs.json).id }} zone=fr-par-2 "command=curl -fsSL https://test.docker.com -o test-docker.sh ; sh test-docker.sh"
run: ssh root@$SSH_IP "curl -fsSL https://test.docker.com -o test-docker.sh ; sh test-docker.sh"
env:
SSH_IP: ${{ fromJson(steps.scw.outputs.json).public_ip.address }}

View File

@ -16,6 +16,7 @@ on:
jobs:
build:
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
# Prepare
@ -29,5 +30,4 @@ jobs:
access-key: ${{ secrets.SCW_ACCESS_KEY }}
secret-key: ${{ secrets.SCW_SECRET_KEY }}
default-project-id: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
default-organization-id: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}
default-organization-id: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}