Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A0-2798: add cliain to s3 #1306

Merged
merged 5 commits into from
Jul 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion .github/workflows/build-and-push-cliain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- 'main'
- 'release-*'
pull_request:
paths:
- bin/cliain/**
Expand Down Expand Up @@ -45,7 +46,6 @@ jobs:

- name: Call action get-ref-properties
id: get-ref-properties
# yamllint disable-line rule:line-length
uses: Cardinal-Cryptography/github-actions/get-ref-properties@v1

- name: Login to ECR
Expand Down Expand Up @@ -83,3 +83,29 @@ jobs:
]]; then
docker push "${{ env.REGISTRY }}${{ env.IMAGE_NAME }}:${{ env.TAG }}"
fi

- name: Configure AWS credentials for S3 AWS
uses: aws-actions/configure-aws-credentials@v2
env:
AWS_ACCESS_KEY_ID: ""
AWS_SECRET_ACCESS_KEY: ""
AWS_SESSION_TOKEN: ""
AWS_DEFAULT_REGION: ""
AWS_REGION: us-east-1
with:
aws-access-key-id: ${{ secrets.AWS_DEVNET_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_DEVNET_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}

- name: Copy binary to S3 AWS bucket (non-liminal)
if: ${{ matrix.runtime != 'liminal' }}
uses: Cardinal-Cryptography/github-actions/copy-file-to-s3@v1
with:
source-path: bin/cliain/target/release
source-filename: cliain
s3-bucket-path:
# yamllint disable-line rule:line-length
builds/aleph-node/commits/${{ steps.get-ref-properties.outputs.sha }}/cliain
s3-bucket-filename:
cliain-${{ steps.get-ref-properties.outputs.sha }}.tar.gz
s3-bucket-name: ${{ secrets.CI_DEVNET_S3BUCKET_NAME }}
Loading