Skip to content

Commit

Permalink
A0-2798: add cliain to s3 (#1306)
Browse files Browse the repository at this point in the history
# Description

This work is required for update net send runtime hook. Also, we need to
trigger it in release branches as well, as we'l use those SHAs as target
SHA of update net.

## Type of change

Please delete options that are not relevant.

- New feature (non-breaking change which adds functionality)

# Checklist:

<!-- delete when not applicable to your PR -->

- I have made neccessary updates to the Infrastructure
  • Loading branch information
Marcin-Radecki authored Jul 27, 2023
1 parent 833c54c commit 691cfdb
Showing 1 changed file with 27 additions and 1 deletion.
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 }}

0 comments on commit 691cfdb

Please sign in to comment.