-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1eb63e9
commit 275a799
Showing
2 changed files
with
3 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,12 +20,11 @@ jobs: | |
secret-key: ${{ secrets.SCW_SECRET_KEY }} | ||
default-project-id: ${{ secrets.SCW_DEFAULT_PROJECT_ID }} | ||
default-organization-id: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }} | ||
- name: Get instance id and expose it in CONTAINER_ID env var | ||
run: echo ::set-env name=CONTAINER_ID::$(cat "${GITHUB_WORKSPACE}/scw.output" | jq -r '.id') | ||
|
||
- name: Get container ID | ||
run: | | ||
echo "CONTAINER_ID=$(scw container list name=${{ secrets.CONTAINER_NAME }} | awk 'NR==2{print $1}')" >> $GITHUB_ENV | ||
- name: 0 instances | ||
uses: jawher/[email protected] | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
- cron: '00 07 * * *' | ||
|
||
jobs: | ||
up: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Use CLI | ||
|
@@ -20,14 +20,11 @@ jobs: | |
secret-key: ${{ secrets.SCW_SECRET_KEY }} | ||
default-project-id: ${{ secrets.SCW_DEFAULT_PROJECT_ID }} | ||
default-organization-id: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }} | ||
- name: Get instance id and expose it in CONTAINER_ID env var | ||
run: echo ::set-env name=CONTAINER_ID::$(cat "${GITHUB_WORKSPACE}/scw.output" | jq -r '.id') | ||
|
||
- name: Get container ID | ||
run: | | ||
echo "CONTAINER_ID=$(scw container list name=${{ secrets.CONTAINER_NAME }} | awk 'NR==2{print $1}')" >> $GITHUB_ENV | ||
- name: start 1 instance | ||
- name: start 1 instances | ||
uses: jawher/[email protected] | ||
env: | ||
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }} | ||
|