-
Notifications
You must be signed in to change notification settings - Fork 15
55 lines (43 loc) · 1.4 KB
/
deploy-stader-node.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Deploy Stader Node
on:
workflow_dispatch:
push:
tags:
- 'v*'
permissions:
id-token: write
contents: read
jobs:
BUILD_AND_PUBLISH_STADER_PERMISSIONLESS_CLI_NODE:
runs-on: ubuntu-latest
env:
AWS_REGION : "us-east-1"
steps:
- name: Install binaries to build stader node
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: qemu-user-static binfmt-support
- name: Initializing multiarch build environment.
run: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- uses: actions/checkout@v3
- name: Docker meta
id: meta
uses: yuya-takeyama/docker-tag-from-github-ref-action@v1
with:
remove-version-tag-prefix: false
- name: Prepare to upload binaries to s3
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.ETHX_STADER_NODE_PUBLISH_ROLE_ARN }}
role-duration-seconds: 1200
role-session-name: githubActionsSession
aws-region: ${{ env.AWS_REGION }}
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build & Release Stader Node CLI
run: |
./build-release.sh -a -v ${{ steps.meta.outputs.tag }}