-
Notifications
You must be signed in to change notification settings - Fork 304
80 lines (77 loc) · 2.6 KB
/
build-and-publish.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
name: Build and publish
# This workflow is triggered on new tags of Community Edition 7.8.x or later,
# or any of the weekly tag names starting 'master'
on:
push:
tags:
- 'master*'
- 'community_*'
- '!community_7.6.*'
- '!community_7.4.*'
- '!community_7.2.*'
- '!community_7.0.*'
- '!community_6.*'
jobs:
build:
name: "Build and publish release container"
runs-on: ubuntu-20.04
if: github.repository == 'hpcc-systems/HPCC-Platform'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
uses: ./dockerfiles
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
latest: 1 # this should only be set on the current minor branch
github_actor: ${{ secrets.LNB_ACTOR }}
github_token: ${{ secrets.LNB_TOKEN }}
sign_modules: 1
signing_secret: ${{ secrets.SIGNING_SECRET }}
signing_keyid: ${{ secrets.SIGNING_KEYID }}
signing_passphrase: ${{ secrets.SIGNING_PASSPHRASE }}
ml-builds:
needs: build
runs-on: ubuntu-20.04
if: github.repository == 'hpcc-systems/HPCC-Platform'
strategy:
matrix:
engine: ['ml', 'gnn', 'gnn-gpu']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
uses: ./dockerfiles
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
latest: 1 # this should only be set on the current minor branch
build_ml: ${{ matrix.engine }}
github_actor: ${{ secrets.LNB_ACTOR }}
github_token: ${{ secrets.LNB_TOKEN }}
ln-builds:
needs: build
runs-on: ubuntu-20.04
if: github.repository == 'hpcc-systems/HPCC-Platform'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
uses: ./dockerfiles
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
ln_username: ${{ secrets.JFROG_USERNAME }}
ln_password: ${{ secrets.JFROG_PASSWORD }}
ln_registry: ${{ secrets.JFROG_REGISTRY }}
ln_docker_repo: ${{ secrets.JFROG_REPOSITORY }}
lnb_token: ${{ secrets.LNB_TOKEN }}
latest: 1 # this should only be set on the current minor branch
build_ln: 1
github_actor: ${{ secrets.LNB_ACTOR }}
github_token: ${{ secrets.LNB_TOKEN }}
sign_modules: 1
signing_secret: ${{ secrets.SIGNING_SECRET }}
signing_keyid: ${{ secrets.SIGNING_KEYID }}
signing_passphrase: ${{ secrets.SIGNING_PASSPHRASE }}