-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.29 KB
/
build-docker.yml
File metadata and controls
49 lines (40 loc) · 1.29 KB
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
# # This workflow will install Python dependencies, run tests and lint with a single version of Python
# # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: build-docker
on:
workflow_run:
workflows:
- python-testing
branches:
- main
- develop
types:
- completed
jobs:
docker-build:
runs-on: [SI, standard]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
# - name: Docker Login
# uses: docker/login-action@v1.10.0
# with:
# registry: harbor.gradiant.org/si-medeva-pr-01432
# username: ${{ secrets.HarborUser }}
# password: ${{ secrets.HarborPass }}
# # Log out from the Docker registry at the end of a job
# logout: true
# - name: Extract Branch name
# run: echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
# - name: Build image
# uses: docker/build-push-action@v2
# with:
# context: .
# file: Dockerfile
# push: true
# tags: harbor.gradiant.org/si-medeva-pr-01432/SchemaMatchingModule:${{ env.BRANCH }}
# build-args: |
# BRANCH=${{ env.BRANCH }}