-
Notifications
You must be signed in to change notification settings - Fork 13
49 lines (46 loc) · 1.4 KB
/
build-sw-container.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
name: Build and Push Docker image
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
yum_repo: ['development', 'testing', 'release']
osg_series: ['3.6']
steps:
- uses: opensciencegrid/[email protected]
with:
osg_series: ${{ matrix.osg_series }}
repo: ${{ matrix.yum_repo }}
push:
runs-on: ubuntu-latest
if: >-
github.ref == 'refs/heads/master' &&
github.event_name != 'pull_request' &&
github.repository_owner == 'opensciencegrid'
needs: [build]
strategy:
fail-fast: false
matrix:
yum_repo: ['development', 'testing', 'release']
osg_series: ['3.6']
registry:
- url: hub.opensciencegrid.org
username: OSG_HARBOR_ROBOT_USER
password: OSG_HARBOR_ROBOT_PASSWORD
- url: docker.io
username: DOCKER_USERNAME
password: DOCKER_PASSWORD
steps:
- uses: opensciencegrid/[email protected]
with:
repo: ${{ matrix.yum_repo}}
osg_series: ${{ matrix.osg_series }}
name: '${{ github.repository_owner }}/pki-tools'
registry_url: ${{ matrix.registry.url }}
registry_user: ${{ secrets[matrix.registry.username] }}
registry_pass: ${{ secrets[matrix.registry.password] }}