This repository has been archived by the owner on Jul 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
91 lines (78 loc) · 2.46 KB
/
dockerimage.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Docker Image CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_test_image:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Build docker `base` image
uses: docker/build-push-action@v1.1.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: sfbelaine/oss_dbs
always_pull: true
tags: base_${{ github.sha }},base_latest
path: ./docker/base/
- name: Build docker `fenics` image
uses: docker/build-push-action@v1.1.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: sfbelaine/oss_dbs
always_pull: true
tags: fenics19_${{ github.sha }},fenics19_latest
path: ./docker/fenics19/
- name: Build docker `python` image
uses: docker/build-push-action@v1.1.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: sfbelaine/oss_dbs
always_pull: true
tags: python_${{ github.sha }},python_latest
path: ./docker/python/
- name: Build docker `platform_test` image
uses: docker/build-push-action@v1.1.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: sfbelaine/oss_dbs
always_pull: true
tags: platform_test_${{ github.sha }},platform_test_latest
target: user_creation
test_image:
runs-on: ubuntu-latest
container:
image: sfbelaine/oss_dbs:platform_test_latest
options: --user 0
needs: [build_test_image]
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Run test
working-directory: OSS_platform
run: python3 Launcher_OSS_lite.py
build_deploy_image:
runs-on: ubuntu-latest
needs: [build_test_image, test_image]
steps:
- name: Check out repository
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Build docker `platform` image
uses: docker/build-push-action@v1.1.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: sfbelaine/oss_dbs
always_pull: true
tags: platform_${{ github.sha }},platform_latest