-
Notifications
You must be signed in to change notification settings - Fork 17
53 lines (49 loc) · 1.54 KB
/
dockercd-harbor-skyhook.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
# Create release only
name: CD-Skyhook
on:
workflow_run:
workflows: ["CD-CC","CD-Analysis"]
branches: [master]
types:
- completed
push:
paths:
- 'docker/skyhook/**'
- 'docker/ceph/**'
- 'docker/Dockerfile.cc-analysis-ubuntu-skyhook'
- 'docker/Dockerfile.cc-ubuntu-skyhook'
branches:
- master
env:
GITHUB_SHA: ${{ github.sha }}
GITHUB_REF: ${{ github.ref }}
jobs:
matrix-build:
strategy:
fail-fast: false
matrix:
IMAGE: [
cc-analysis-ubuntu-skyhook,
cc-ubuntu-skyhook,]
name: ${{ matrix.IMAGE }}
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set Job Environment Variables
run: |
TAG="${GITHUB_REF##*/}"
echo "TAG=${TAG}" >> $GITHUB_ENV
- name: Login to Openscience Harbor Registry
uses: docker/login-action@v1
with:
registry: hub.opensciencegrid.org
username: ${{ secrets.HARBOR_USER }}
password: ${{ secrets.HARBOR_PASSWORD }}
- name: Build Container Image
run: |
cd docker
docker build --build-arg TAG="development" --build-arg HUB="hub.opensciencegrid.org" --build-arg PROJECT="coffea-casa" -t hub.opensciencegrid.org/coffea-casa/${{ matrix.IMAGE }}:development -f Dockerfile.${{ matrix.IMAGE }} .
- name: Push to Openscience Harbor Registry
run: |
docker push hub.opensciencegrid.org/coffea-casa/${{ matrix.IMAGE }}:development