Skip to content

Commit

Permalink
cd fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Edouard Barrault committed Nov 9, 2024
1 parent bc82842 commit 70a355a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,10 @@ jobs:
# Delete previous instance
scw instance server list project-id=${{ secrets.SCALEWAY_PROJECT_ID }}
INSTANCE_META=$(scw instance server list project-id=${{ secrets.SCALEWAY_PROJECT_ID }})
INSTANCE_ID=$(echo $INSTANCE_META | awk 'NR==2 {print $1}')
INSTANCE_NAME=$(echo $INSTANCE_META | awk 'NR==2 {print $2}')
# INSTANCE_ID=$(echo $INSTANCE_META | awk 'NR==2 {print $1}')
# INSTANCE_NAME=$(echo $INSTANCE_META | awk 'NR==2 {print $2}')
INSTANCE_ID=$(echo $INSTANCE_META | grep -v ID | tr -s ' ' | cut -d' ' -f1)
INSTANCE_NAME=$(echo $INSTANCE_META | grep -v ID | tr -s ' ' | cut -d' ' -f2)
echo 'Deleting instance '$INSTANCE_NAME' ...'
scw instance server stop $INSTANCE_ID
scw instance server delete $INSTANCE_ID with-volumes with-ip
Expand Down

0 comments on commit 70a355a

Please sign in to comment.