Skip to content
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

Use update setup-gap action for gap v2 #694

Merged
merged 4 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions .changeset/khaki-papayas-mix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"crib-deploy-environment": major
---

Update major setup-gap dep
23 changes: 5 additions & 18 deletions actions/crib-deploy-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ description:
an ephemeral environment."

inputs:
api-gateway-host:
description: "API Gateway host for GAP, used to access the Kubernetes API."
required: true
aws-region:
description: "AWS region."
required: true
Expand All @@ -17,11 +14,6 @@ inputs:
default: "0.0.0.0/0"
description: "DevSpace ingress CIDRs."
required: false
ecr-private-registry:
default: ""
description:
"ECR private registry account ID in Production, needed for GAP."
required: false
github-token:
description:
"The `GITHUB_TOKEN` issued for the workflow. It is required unless the
Expand Down Expand Up @@ -84,6 +76,9 @@ inputs:
description: |
Specify a relevant value for tagging resources and attributing
costs to the correct product.
k8s-api-endpoint:
required: true
description: "Endpoint"
outputs:
devspace-namespace:
description: "Kubernetes namespace used to provision a CRIB environment."
Expand All @@ -93,22 +88,16 @@ runs:
using: "composite"
steps:
- name: Setup GAP
uses: smartcontractkit/.github/actions/setup-gap@d316f66b2990ea4daa479daa3de6fc92b00f863e # setup-gap@0.3.2
uses: smartcontractkit/.github/actions/setup-gap@47a3b0cf4e87a031049eef2d951982c94db04cae # setup-gap@1.0.0
with:
checkout-repo: false
aws-role-arn: ${{ inputs.aws-role-arn }}
api-gateway-host: ${{ inputs.api-gateway-host }}
aws-region: ${{ inputs.aws-region }}
ecr-private-registry: ${{ inputs.ecr-private-registry }}
k8s-cluster-name: ${{ inputs.k8s-cluster-name }}
use-private-ecr-registry: true
use-k8s: true
# Choose port that is less likely to be conflicting with other GAP
# instances that runs in the same workflow
proxy-port: 8888
gc-basic-auth: ${{ inputs.gc-basic-auth }}
gc-host: ${{ inputs.gc-host }}
gc-org-id: ${{ inputs.gc-org-id }}
k8s-api-endpoint: ${{ inputs.k8s-api-endpoint }}

- name: Checkout crib repo
uses: actions/[email protected]
Expand Down Expand Up @@ -153,7 +142,6 @@ runs:
echo "Invalid value for chainlink-team label: ${{ inputs.chainlink-team }}. Must be up to 63 characters, contain only letters, numbers, hyphens, underscores, and dots, and cannot start or end with a dot."
exit 1
fi

if [[ ! "${{ inputs.chainlink-product }}" =~ ^[a-zA-Z0-9_.-]+$ ]] || [[ "${{ inputs.chainlink-product }}" -gt 63 ]] || [[ "${{ inputs.chainlink-product }}" =~ ^\. ]] || [[ "${{ inputs.chainlink-product }}" =~ \.$ ]]; then
echo "Invalid value for chainlink-product label: ${{ inputs.chainlink-product }}. Must be up to 63 characters, contain only letters, numbers, hyphens, underscores, and dots, and cannot start or end with a dot."
exit 1
Expand Down Expand Up @@ -208,7 +196,6 @@ runs:
nix develop -c ./cribbit.sh "$DEVSPACE_NAMESPACE"

nix develop -c devspace run ${{ inputs.command }} ${{ inputs.command-args }}

- name: Render notification template
uses: actions/[email protected]
id: render-slack-template
Expand Down
Loading