Skip to content

Commit c95a194

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

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ 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
34-
run: ./cli build-and-push ${{ inputs.image }} ${{ steps.version-generator.outputs.IMAGE_VERSION }}
38+
run: ./cli build-and-push "${{ inputs.image }}" "${{ steps.version-generator.outputs.IMAGE_VERSION }}"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v2
21+
22+
- name: Build and push Docker image
23+
uses: ./.github/actions/build-docker-image
24+
with:
25+
image: api

0 commit comments

Comments
 (0)