-
Notifications
You must be signed in to change notification settings - Fork 63
50 lines (49 loc) · 1.34 KB
/
build-push.yaml
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
name: Build docker image
on:
push:
branches:
- master
tags:
- '**'
workflow_dispatch:
jobs:
prepare:
runs-on: ubuntu-latest
outputs:
platforms: ${{ steps.setup.outputs.platforms }}
tag: ${{ steps.setup.outputs.tag }}
steps:
- uses: actions/checkout@v4
- name: Prepare Matrix
id: setup
uses: ./.github/actions/prepare
deploy:
needs:
- prepare
runs-on: ${{ matrix.runner }}
continue-on-error: true
strategy:
matrix:
include: ${{fromJson(needs.prepare.outputs.platforms)}}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/deploy
with:
platform: ${{ matrix.platform }}
tag: ${{ needs.prepare.outputs.tag }}
DOCKER_USERNAME: "${{ secrets.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
manifest:
needs:
- prepare
- deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/manifest
with:
tag: ${{ needs.prepare.outputs.tag }}
repository: ethpandaops/ethereum-genesis-generator
platforms: ${{ needs.prepare.outputs.platforms }}
DOCKER_USERNAME: "${{ secrets.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"