Skip to content

refactor(ci): use official scw action #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions .github/workflows/integration-gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,15 @@ jobs:
repository: scaleway/serverless-gateway
path: ${{ env.GATEWAY_CHECKOUT_DIR }}

- name: Install Scaleway CLI
# Should point to GATEWAY_CHECKOUT_DIR but env is unusable here.
# See: https://docs.github.com/en/actions/learn-github-actions/contexts#env-context
uses: ./gateway/.github/actions/setup-scaleway-cli
- name: Install CLI and create config file
uses: scaleway/action-scw@v0.0.1
with:
scw-version: "2.13.0"
scw-access-key: ${{ secrets.SCW_ACCESS_KEY }}
scw-secret-key: ${{ secrets.SCW_SECRET_KEY }}
scw-default-project-id: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
scw-default-organization-id: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}
version: v2.14.0
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 }}
save-config: true

- name: Create Gateway namespace
working-directory: ${{ env.GATEWAY_CHECKOUT_DIR }}
Expand Down