-
Notifications
You must be signed in to change notification settings - Fork 17
54 lines (44 loc) · 1.34 KB
/
docker_build_ubuntu_version.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
54
name: Docker Build
on:
push:
# branches:
# - main
# pull_request:
workflow_call:
inputs:
branch:
description: "Branch name for build"
required: true
type: string
permissions:
id-token: write
contents: read
#env:
# VAULT_PW: ${{ secrets.VAULT_PW }}
# REPORT_COVERAGE: true
jobs:
docker_build:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# path: ./dpc-app
# ref: ${{ github.event.pull_request.head.sha || github.event.inputs.branch }}
ref: ${{ github.ref_name }}
- name: "Set up JDK 11"
uses: actions/setup-java@v1
with:
java-version: "11"
- name: Docker manually
run: docker --version && docker compose -f ./docker-compose.base.yml build base
- name: Build app
run: docker --version && docker compose -f ./docker-compose.base.yml build base
# run: cat Makefile | grep ci-app -B 2 -A 3 && make ci-app
- name: Build portal # this is run in parallel with the app build on jenkins, might break out to separate job
run: make ci-portals-v1
- name: Save artifacts
run: "echo 'Saving artifacts'"
- name: ECR Login
run: "log into ECR here and then push up images"
# use ECR to save the artifacts