forked from mit-dci/opencbdc-tx
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.5 KB
/
docker-push.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
---
name: docker push
# Runs on a push to any branch except trunk
# This CI will run on mit/opencbdc-tx only if the branch was created there
# This CI is run on pushes to branches on forks
on:
push:
branches-ignore:
- trunk
jobs:
docker-build:
runs-on: ubuntu-latest
steps:
########################
# CI Setup #
########################
- name: Checkout code
uses: actions/checkout@v4
########################
# Build Base #
########################
- name: Build docker base image (push)
run: docker build --target base -t opencbdc-tx-base-local .
########################
# Submodules #
########################
- name: Pull submodules
run: git submodule init && git submodule update
########################
# Build Application #
########################
- name: Build twophase docker image (push/pull_request with base changes)
run: docker build --target twophase --build-arg BASE_IMAGE=opencbdc-tx-base-local -t opencbdc-tx-twophase-local .
- name: Build atomizer docker image (push/pull_request with base changes)
run: docker build --target atomizer --build-arg BASE_IMAGE=opencbdc-tx-base-local -t opencbdc-tx-atomizer-local .
- name: Build parsec docker image (push/pull_request with base changes)
run: docker build --target parsec --build-arg BASE_IMAGE=opencbdc-tx-base-local -t opencbdc-tx-parsec-local .