Skip to content
This repository has been archived by the owner on Dec 5, 2021. It is now read-only.

Commit

Permalink
Inomurko/get ready for cruncy tiger (#199)
Browse files Browse the repository at this point in the history
* create release images

* create containers for develop and add gas-oracle

create containers for develop and add gas-oracle

* filter tag

* filter tag, and build omgx_message-relayer-fast
  • Loading branch information
InoMurko authored Jul 15, 2021
1 parent 0a9f547 commit ab9a9c1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/omgx-publish-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,19 @@ jobs:
docker build ../ --file docker/Dockerfile.omgx_monorepo --tag omgx/omgx_builder:latest
docker build ../ --file docker/Dockerfile.omgx_deployer --tag omgx/omgx_deployer:latest
docker build ../ --file docker/Dockerfile.gas-oracle --tag omgx/gas-oracle:latest
docker build ../ --file docker/Dockerfile.omgx_message-relayer-fast --tag omgx/omgx_message-relayer-fast:latest
- name: Rename and retag the optimism images
working-directory: ./ops
run: |
for i in $(docker images --format "{{.Repository}}:{{.Tag}}" | grep omgx); do
docker image tag "$i" omgx/$(echo $i | awk -F'/' '{print $2}' | awk -F':' '{print $1}'):develop
done
for i in $(docker images --format "{{.Repository}}:{{.Tag}}" | grep ethereumoptimism); do
docker image tag "$i" omgx/$(echo $i | awk -F'/' '{print $2}' | awk -F':' '{print $1}'):latest
docker image tag "$i" omgx/$(echo $i | awk -F'/' '{print $2}' | awk -F':' '{print $1}'):develop
done
docker image tag omgx/gas-oracle:latest omgx/gas-oracle:develop
docker image tag omgx/omgx_builder:latest omgx/omgx_builder:develop
docker image tag omgx/omgx_deployer:latest omgx/omgx_deployer:develop
docker rmi $(docker images | grep 'ethereumoptimism/' | awk '{print $1}')
docker images
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/omgx-publish-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,17 @@ jobs:
id: tag
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

- name: Print current tag
run: echo ${{ steps.tag.outputs.VERSION }}

- name: Build the services
working-directory: ./ops
run: |
echo ${{ steps.tag.outputs.VERSION }}
./scripts/build-ci.sh
docker build ../ --file docker/Dockerfile.omgx_monorepo --tag omgx/omgx_builder:${{ steps.tag.outputs.VERSION }}
docker build ../ --file docker/Dockerfile.omgx_deployer --tag omgx/omgx_deployer:${{ steps.tag.outputs.VERSION }}
docker build ../ --file docker/Dockerfile.gas-oracle --tag omgx/gas-oracle:${{ steps.tag.outputs.VERSION }}
docker build ../ --file docker/Dockerfile.omgx_message-relayer-fast --tag omgx/omgx_message-relayer-fast:${{ steps.tag.outputs.VERSION }}
- name: Rename and retag the Optimism images
working-directory: ./ops
run: |
Expand All @@ -63,6 +65,7 @@ jobs:
done
docker rmi $(docker images | grep 'ethereumoptimism/' | awk '{print $1}')
docker images
docker images | grep ${{ steps.tag.outputs.VERSION }}
- name: Rename and retag the optimism images
working-directory: ./ops
Expand Down

0 comments on commit ab9a9c1

Please sign in to comment.