Skip to content

Commit a8b47b8

Browse files
author
Mikhail Savelyev
committed
(WIP build docker and push images on push)
1 parent 56404f4 commit a8b47b8

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/actions/build-docker-image/action.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ runs:
2828
shell: bash
2929
run: echo ${{ env.ORACLE_DOCKER_PASSWORD }} | docker login sjc.ocir.io -u ${{ env.ORACLE_DOCKER_USERNAME }} --password-stdin
3030

31+
- name: test checkpoint
32+
shell: bash
33+
run: echo "TEST CHECKPOINT"
34+
3135
- name: Build and push docker image
3236
shell: bash
3337
working-directory: ./scripts
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build Docker Images
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
env:
8+
ORACLE_DOCKER_USERNAME: ${{ secrets.ORACLE_DOCKER_USERNAME }}
9+
ORACLE_DOCKER_PASSWORD: ${{ secrets.ORACLE_DOCKER_PASSWORD }}
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
image: [api, frontend, data-sink-worker]
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v3
21+
22+
- name: Set up Docker Buildx
23+
uses: docker/setup-buildx-action@v2
24+
25+
- name: Build and push Docker image
26+
uses: ./.github/actions/build-docker-image
27+
with:
28+
image: ${{ matrix.image }}

0 commit comments

Comments
 (0)