-
Notifications
You must be signed in to change notification settings - Fork 19
36 lines (32 loc) · 1015 Bytes
/
dockerci-hub.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
# Only test building images
name: PullRequest
on:
pull_request:
paths:
- 'charts/coffea-casa/docker/**'
branches:
- master
- develop
env:
DOCKER_ORG: coffeateam
GITHUB_SHA: ${{ github.sha }}
GITHUB_REF: ${{ github.ref }}
jobs:
matrix-build:
strategy:
fail-fast: false
matrix:
IMAGE: ["k8s-hub-coffea-casa"]
name: ${{ matrix.IMAGE }}
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Build Image
run: |
cd charts/coffea-casa/docker/${{ matrix.IMAGE }}
docker build --build-arg TAG="development" --build-arg HUB="hub.opensciencegrid.org" --build-arg PROJECT="coffea-casa" --build-arg GITHUB_ACTIONS=$GITHUB_ACTIONS -t ${DOCKER_ORG}/${{ matrix.IMAGE }}:PR .
# FIXME: add some tests
#- name: Test Image
# run: |
# docker run -u 1000 -w /srv/test -v $PWD:/srv/test ${DOCKER_ORG}/${{ matrix.IMAGE }}:PR ./run_tests.sh ${{ matrix.IMAGE }}