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

workflows: update #345

Merged
merged 10 commits into from
Nov 3, 2020
Merged
Show file tree
Hide file tree
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
4 changes: 0 additions & 4 deletions .github/scripts/replace-aws-account-id.sh

This file was deleted.

17 changes: 0 additions & 17 deletions .github/scripts/stop-ecs-task.sh

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/dev-ecr-deploy.yml

This file was deleted.

25 changes: 15 additions & 10 deletions .github/workflows/dockerhub-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: Build & Push to DockerHub
on:
push:
branches:
- master
- testnet
- uat

jobs:
build:
Expand All @@ -12,22 +14,25 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1

- uses: webfactory/ssh-agent@v0.4.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY_READ }}

- name: Login to DockerHub Registry
run: echo ${{ secrets.DOCKERHUB_ACCESS_TOKEN_SECRET }} | docker login -u ${{ secrets.DOCKERHUB_ACCESS_TOKEN_USERNAME}} --password-stdin

- name: Build and push Rollup Services image to DockerHub
run: |
docker build -f Dockerfile -t ethereumoptimism/rollup-services:latest .
docker push ethereumoptimism/rollup-services:latest

- name: Build and push Postgres image to DockerHub
run: |
cd db
docker build -f Dockerfile -t ethereumoptimism/postgres:latest .
docker push ethereumoptimism/postgres:latest
git clone https://github.com/ethereum-optimism/docker.git \
$HOME/docker
cd $HOME/docker
./build.sh -s batch-submitter -b $GITHUB_HEAD_REF
if [ $GITHUB_HEAD_REF == 'master' ]; then
docker push ethereumoptimism/batch-submitter:latest
elif [[ $GITHUB_HEAD_REF == 'uat' || $GITHUB_HEAD_REF == 'testnet' ]]; then
docker push ethereumoptimism/batch-submitter:$GITHUB_HEAD_REF
fi

- name: Logout of DockerHub
run: docker logout
14 changes: 4 additions & 10 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,18 @@ jobs:
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY_READ }}

- name: Setup node
uses: actions/setup-node@v1

- name: Build
run: |
git clone https://github.com/ethereum-optimism/optimism-integration.git \
$HOME/optimism-integration \
--recurse-submodules
REPO=$(echo $GITHUB_REPOSITORY | cut -d '/' -f2)
cd $HOME/optimism-integration/$REPO
REMOTE="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git"
git remote add gh $REMOTE
git fetch gh $GITHUB_SHA
git checkout $GITHUB_SHA
cd $HOME/optimism-integration
GIT_COMMIT=$(git rev-parse HEAD | head -c 8)
echo "optimism-integration $GIT_COMMIT"
./docker/build.sh -s batch-submitter -b $GITHUB_HEAD_REF
./docker/build.sh

- name: Test
run: |
cd $HOME/optimism-integration
./test.sh
BATCH_SUBMITTER_TAG=$GITHUB_HEAD_REF ./test.sh
50 changes: 0 additions & 50 deletions .github/workflows/testnet-ecr-build-push.yml

This file was deleted.

50 changes: 0 additions & 50 deletions .github/workflows/uat-ecr-build-push.yml

This file was deleted.