-
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.
Merge remote-tracking branch 'origin/develop' into TT-653-Migrate-CTF…
…-Packages-To-CTF
- Loading branch information
Showing
5 changed files
with
414 additions
and
237 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@eccde1970eca69f079d3efb3409938a72ade8497 # v2.2.13 | ||
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@eccde1970eca69f079d3efb3409938a72ade8497 # v2.2.13 | ||
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
Oops, something went wrong.