Skip to content

Commit

Permalink
wip: access
Browse files Browse the repository at this point in the history
  • Loading branch information
polomarcus committed Nov 28, 2023
1 parent 460d9bf commit f93f37c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/scaleway-down.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Use CLI
uses: scaleway/action-scw@v0
uses: jawher/action-scw@v2.24.0
env:
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
SCW_ORGANIZATION_ID: ${{ secrets.SCW_ORGANIZATION_ID }}
SCW_ZONE: ${{ secrets.SCW_ZONE }}
with:
version: v2.24.0
- name: Get container ID
run: |
echo "CONTAINER_ID=$(scw container container list name=${{ secrets.CONTAINER_NAME }} | awk 'NR==2{print $1}')" >> $GITHUB_ENV
echo "CONTAINER_ID=$(container container list name=${{ secrets.CONTAINER_NAME }} | awk 'NR==2{print $1}')" >> $GITHUB_ENV
- name: 0 instances
uses: jawher/[email protected]
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/scaleway-up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Use CLI
uses: scaleway/action-scw@v0
uses: jawher/action-scw@v2.24.0
env:
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
SCW_ORGANIZATION_ID: ${{ secrets.SCW_ORGANIZATION_ID }}
SCW_ZONE: ${{ secrets.SCW_ZONE }}
with:
version: v2.24.0
- name: Get container ID
run: |
echo "CONTAINER_ID=$(scw container container list name=${{ secrets.CONTAINER_NAME }} | awk 'NR==2{print $1}')" >> $GITHUB_ENV
echo "CONTAINER_ID=$(container container list name=${{ secrets.CONTAINER_NAME }} | awk 'NR==2{print $1}')" >> $GITHUB_ENV
- name: start 1 instances
uses: jawher/[email protected]
Expand Down

0 comments on commit f93f37c

Please sign in to comment.