Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Commit

Permalink
bump transaction service with deterministic deployment stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
InoMurko committed Nov 26, 2021
1 parent 674dde5 commit d6b5d89
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 1,282 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/build-boba.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,7 @@ on:

jobs:

start-runner:
name: Start self-hosted EC2 runner
runs-on: ubuntu-latest
outputs:
label: ${{ steps.start-ec2-runner.outputs.label }}
ec2-instance-id: ${{ steps.start-ec2-runner.outputs.ec2-instance-id }}
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Start EC2 runner
id: start-ec2-runner
uses: machulav/ec2-github-runner@v2
with:
mode: start
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
ec2-image-id: ami-00b46fa1102c70ff2
ec2-instance-type: t2.xlarge
subnet-id: subnet-905870ae
security-group-id: sg-0855631d714870b32

build-publish-win:
needs: start-runner
runs-on: ${{ needs.start-runner.outputs.label }}

steps:
- name: Login to Docker Hub
uses: docker/login-action@v1
Expand Down Expand Up @@ -79,25 +52,3 @@ jobs:
echo "$1"
docker push "$i"
done
stop-runner:
name: Stop self-hosted EC2 runner
needs:
- start-runner # required to get output from the start-runner job
- build-publish-win # required to wait when the main job is done
runs-on: ubuntu-latest
if: ${{ always() }} # required to stop the runner even if the error happened in the previous jobs
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Stop EC2 runner
uses: machulav/ec2-github-runner@v2
with:
mode: stop
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
label: ${{ needs.start-runner.outputs.label }}
ec2-instance-id: ${{ needs.start-runner.outputs.ec2-instance-id }}
26 changes: 0 additions & 26 deletions .github/workflows/cla.yml

This file was deleted.

146 changes: 0 additions & 146 deletions .github/workflows/deploy-arbitrum.yml

This file was deleted.

148 changes: 0 additions & 148 deletions .github/workflows/deploy-bsc.yml

This file was deleted.

Loading

0 comments on commit d6b5d89

Please sign in to comment.