Skip to content

Documentation for pallet-ddc-clusters, pallet-ddc-nodes, pallet-ddc-staking and pallet-ddc-customers public and private members. #74

Documentation for pallet-ddc-clusters, pallet-ddc-nodes, pallet-ddc-staking and pallet-ddc-customers public and private members.

Documentation for pallet-ddc-clusters, pallet-ddc-nodes, pallet-ddc-staking and pallet-ddc-customers public and private members. #74

Workflow file for this run

name: ECR
on:
pull_request:
branches:
- dev
- master
- 'release/**'
- 'hotfix/**'
types:
- opened
- synchronize
- edited
env:
PROFILE: release
jobs:
build:
runs-on: ubuntu-latest
concurrency: dev
steps:
- uses: actions/checkout@v3
- name: Cache cargo registry
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Configure AWS credentials ORG
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.ORG_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.ORG_AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2
- name: Login to Amazon ECR ORG
id: login-ecr-org
uses: aws-actions/amazon-ecr-login@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push docker image to ECR Docker
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile.tests
push: false
build-args: |
"ECR_REGISTRY=${{ steps.login-ecr-org.outputs.registry }}"