Skip to content

Commit 5b851e4

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

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,13 @@ runs:
2626

2727
- name: Login to docker repository
2828
shell: bash
29-
run: echo ${{ env.ORACLE_DOCKER_PASSWORD }} | docker login sjc.ocir.io -u ${{ env.ORACLE_DOCKER_USERNAME }} --password-stdin
29+
run: echo '${{ env.ORACLE_DOCKER_PASSWORD }}' | docker login sjc.ocir.io -u '${{ env.ORACLE_DOCKER_USERNAME }}' --password-stdin
30+
31+
- name: test checkpoint
32+
shell: bash
33+
run: echo "TEST CHECKPOINT"
3034

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)