Skip to content

Commit

Permalink
Merge pull request #3307 from smartcontractkit/release/0.8.13-rc4
Browse files Browse the repository at this point in the history
Release/ 0.8.13
  • Loading branch information
tyrion70 authored Aug 26, 2020
2 parents 9538db6 + c3da7fc commit 77e3ee9
Show file tree
Hide file tree
Showing 210 changed files with 6,906 additions and 4,726 deletions.
36 changes: 35 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -333,13 +333,14 @@ jobs:
steps:
- checkout
- run:
name: Docker login
name: Docker Hub login
command: |
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USER" --password-stdin
- run:
name: Docker build
command: |
DOCKER_TAG=circleci make docker
- setup-aws-ecr
- run:
name: Docker push, if applicable
command: |
Expand Down Expand Up @@ -540,3 +541,36 @@ workflows:
- /^release\/.*/
- master
- /^hotfix\/.*/
commands:
setup-aws-ecr:
description: "Install aws cli and log docker in ECR"
steps:
- run:
name: Install AWS CLI
command: |
curl -sSL "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
rm awscliv2.zip
aws --version
- run:
name: Docker login for ECR using temporary creds
command: |
# Get temporary credentials to access resoures available to specific role
temporaryCredentials=$(
aws sts assume-role \
--role-arn "${AWS_ROLE_TO_ASSUME}" \
--role-session-name "cirlceci-${CIRCLE_PROJECT_REPONAME}-${CIRCLE_TAG}"
)
# Deconstruct json response, extracting aws credentials
accessKeyID=$(echo $temporaryCredentials | jq .Credentials.AccessKeyId | xargs)
secretAccessKey=$(echo $temporaryCredentials | jq .Credentials.SecretAccessKey | xargs)
sessionToken=$(echo $temporaryCredentials | jq .Credentials.SessionToken | xargs)
# Store aws creds in .aws folder
aws configure set aws_access_key_id ${accessKeyID}
aws configure set aws_secret_access_key ${secretAccessKey}
aws configure set aws_session_token ${sessionToken}
# Use temporary keys to get account ID
accountID=$(aws sts get-caller-identity --output text --query 'Account')
# docker cli login to ECR
aws ecr get-login-password --region "${AWS_REGION}" --profile "default" | docker login --username AWS --password-stdin "${accountID}.dkr.ecr.us-west-2.amazonaws.com/chainlink"
14 changes: 14 additions & 0 deletions .github/workflows/build-publish-explorer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Build/Publish Explorer Workflow

on:
repository_dispatch:
types: build-publish-explorer

jobs:
build-publish-explorer:
name: Build/Publish Explorer
runs-on: ubuntu-latest
container: smartcontract/builder:1.0.29
steps:
- run: echo GREAT SUCCESS

Loading

0 comments on commit 77e3ee9

Please sign in to comment.