forked from ethereum-optimism/optimism
-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (45 loc) · 1.42 KB
/
docker-op-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
name: OP Node Docker Images
on:
push:
branches:
- main
- release-*
- integration
pull_request:
workflow_dispatch:
env:
REGISTRY: ghcr.io
REPOSITORY: espressosystems/op-espresso-integration
PLATFORMS: linux/amd64,linux/arm64
jobs:
build_and_push_docker_image:
name: Push Docker image to ghcr
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Github Container Repo
uses: docker/login-action@v2
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up environment
run: |
GIT_COMMIT=$(git rev-parse HEAD)
GIT_DATE=$(git show -s --format='%ct')
IMAGE_TAGS=$GIT_COMMIT,latest,integration
echo "GIT_COMMIT=$GIT_COMMIT" >> "$GITHUB_ENV"
echo "GIT_DATE=$GIT_DATE" >> "$GITHUB_ENV"
echo "IMAGE_TAGS=$IMAGE_TAGS" >> "$GITHUB_ENV"
cat "$GITHUB_ENV"
- name: Build and push
uses: docker/bake-action@v4
with:
targets: op-node,op-batcher,op-proposer,op-geth-proxy
push: ${{ github.event_name != 'pull_request' }}