-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'chainlink/develop' into develop
- Loading branch information
Showing
2,498 changed files
with
195,694 additions
and
111,466 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Build Chainlink Image | ||
description: A composite action that allows building and publishing the Chainlink image for integration testing | ||
|
||
inputs: | ||
tag_suffix: | ||
description: The suffix to append to the image tag (usually blank or "-plugins") | ||
default: "" | ||
dockerfile: | ||
description: The path to the Dockerfile to use (usually core/chainlink.Dockerfile or plugins/chainlink.Dockerfile) | ||
default: core/chainlink.Dockerfile | ||
git_commit_sha: | ||
description: The git commit sha to use for the image tag | ||
default: ${{ github.sha }} | ||
GRAFANA_CLOUD_BASIC_AUTH: | ||
description: "grafana cloud basic auth" | ||
GRAFANA_CLOUD_HOST: | ||
description: "grafana cloud hostname" | ||
AWS_REGION: | ||
description: "AWS region to use for ECR" | ||
AWS_ROLE_TO_ASSUME: | ||
description: "AWS role to assume for ECR" | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Check if image exists | ||
id: check-image | ||
uses: smartcontractkit/chainlink-github-actions/docker/image-exists@e865e376b8c2d594028c8d645dd6c47169b72974 # v2.2.16 | ||
with: | ||
repository: chainlink | ||
tag: ${{ inputs.git_commit_sha }}${{ inputs.tag_suffix }} | ||
AWS_REGION: ${{ inputs.AWS_REGION }} | ||
AWS_ROLE_TO_ASSUME: ${{ inputs.AWS_ROLE_TO_ASSUME }} | ||
- name: Build Image | ||
if: steps.check-image.outputs.exists == 'false' | ||
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/build-image@e865e376b8c2d594028c8d645dd6c47169b72974 # v2.2.16 | ||
with: | ||
cl_repo: smartcontractkit/chainlink | ||
cl_ref: ${{ inputs.git_commit_sha }} | ||
cl_dockerfile: ${{ inputs.dockerfile }} | ||
push_tag: ${{ env.CHAINLINK_IMAGE }}:${{ inputs.git_commit_sha }}${{ inputs.tag_suffix }} | ||
QA_AWS_REGION: ${{ inputs.AWS_REGION }} | ||
QA_AWS_ROLE_TO_ASSUME: ${{ inputs.AWS_ROLE_TO_ASSUME }} | ||
- name: Print Chainlink Image Built | ||
shell: sh | ||
run: | | ||
echo "### Chainlink node image tag used for this test run :link:" >>$GITHUB_STEP_SUMMARY | ||
echo "\`${GITHUB_SHA}\`" >>$GITHUB_STEP_SUMMARY |
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
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
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Delete Deployments | ||
description: Delete deployments by env and ref | ||
inputs: | ||
environment: | ||
required: true | ||
description: The Github environment to filter deployments by | ||
ref: | ||
required: true | ||
description: The ref to filter deployments by | ||
dry-run: | ||
required: false | ||
description: Whether to actually delete deployments or not | ||
github-token: | ||
description: "The Github token to use for authentication" | ||
required: true | ||
default: ${{ github.token }} | ||
num-of-pages: | ||
required: false | ||
description: The number of pages (of 100 per page) to fetch deployments from, set to 'all' to fetch all deployments | ||
default: "all" | ||
starting-page: | ||
required: false | ||
description: The page to start fetching deployments from, only valid if num-of-pages is set to a number | ||
repository: | ||
required: false | ||
description: The owner and repository name to delete deployments from, defaults to the current repository, ex. 'smartcontractkit/chainlink' | ||
default: ${{ github.repository }} | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: pnpm/action-setup@c3b53f6a16e57305370b4ae5a540c2077a1d50dd # v2.2.4 | ||
with: | ||
version: ^8.0.0 | ||
|
||
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 | ||
with: | ||
node-version: "18" | ||
cache: "pnpm" | ||
cache-dependency-path: "./.github/actions/delete-deployments/pnpm-lock.yaml" | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: pnpm i --prod | ||
working-directory: "./.github/actions/delete-deployments" | ||
|
||
- name: Run deployment deleter | ||
shell: bash | ||
run: pnpm start | ||
env: | ||
NUM_OF_PAGES: ${{ inputs.num-of-pages }} | ||
STARTING_PAGE: ${{ inputs.starting-page }} | ||
GITHUB_TOKEN: ${{ inputs.github-token }} | ||
ENVIRONMENT: ${{ inputs.environment }} | ||
REF: ${{ inputs.ref }} | ||
DRY_RUN: ${{ inputs.dry-run }} | ||
OWNER: ${{ inputs.owner }} | ||
REPOSITORY: ${{ inputs.repository }} | ||
working-directory: "./.github/actions/delete-deployments" |
Oops, something went wrong.