-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backout CRIB setup on develop. (#12705)
Until other pieces are in place.
- Loading branch information
Showing
1 changed file
with
0 additions
and
42 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 |
---|---|---|
|
@@ -56,48 +56,6 @@ jobs: | |
dockerhub_password: ${{ secrets.DOCKERHUB_READONLY_PASSWORD }} | ||
git-commit-sha: ${{ steps.git-ref.outputs.checked-out || github.sha }} | ||
|
||
- name: Setup GAP | ||
# Don't run for plugins. | ||
if: matrix.image.name == '' | ||
uses: smartcontractkit/.github/actions/setup-gap@1bc7ce34fa81fffcb4a6eb0e4e12e59d94d0fc8f # [email protected] | ||
with: | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
aws-role-arn: ${{ secrets.AWS_OIDC_CRIB_ROLE_ARN_SAND }} | ||
api-gateway-host: ${{ secrets.AWS_API_GW_HOST_K8S_SAND }} | ||
use-k8s: "true" | ||
k8s-cluster-name: ${{ secrets.AWS_EKS_CLUSTER_NAME_SAND }} | ||
use-private-ecr-registry: true | ||
ecr-private-registry: ${{ secrets.AWS_ACCOUNT_ID_PROD }} | ||
metrics-job-name: push-chainlink-develop ${{ matrix.image.name }} | ||
gc-host: ${{ secrets.GRAFANA_INTERNAL_HOST }} | ||
gc-basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }} | ||
gc-org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }} | ||
|
||
# A mutable image tag is used for these CRIBs and it was just built/published | ||
# from this workflow. The deployment has an `imagePullPolicy: Always` set, so | ||
# we need to restart the deployments to pick up the new image. | ||
- name: Restart K8s Deployments for CRIBs | ||
# Don't run for plugins. | ||
if: matrix.image.name == '' | ||
shell: bash | ||
run: | | ||
set -euo pipefail | ||
# Removes the "smartcontractkit/" (org name) prefix. | ||
REPO_NAME_ONLY="${GITHUB_REPOSITORY##*/}" | ||
K8S_NAMESPACE="crib-${REPO_NAME_ONLY}-develop" | ||
deployment_node_names=$(kubectl --namespace "${K8S_NAMESPACE}" \ | ||
get deployments \ | ||
-l "app=${K8S_NAMESPACE}" \ | ||
-o custom-columns=:metadata.name --no-headers) | ||
IFS=$'\n' read -r -d '' -a deployment_names_arr <<< "$deployment_node_names" || : | ||
for name in "${deployment_names_arr[@]}"; do | ||
echo "Restarting deployment: $name" | ||
kubectl --namespace "${K8S_NAMESPACE}" \ | ||
rollout restart "deployment/${name}" | ||
done | ||
- name: Collect Metrics | ||
if: always() | ||
id: collect-gha-metrics | ||
|