-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (51 loc) · 1.54 KB
/
ci.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
name: haskell
on:
push:
tags:
- "*"
branches:
- release
pull_request:
env:
IMAGE_NAME: hstreamdb/haskell
jobs:
init:
runs-on: ubuntu-latest
outputs:
skip: ${{ steps.check-if-skip.outputs.skip }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: check-if-skip
id: check-if-skip
uses: ./.github/actions/check-if-skip
with:
checksum-file: checksum/haskell.sha256sum
build:
needs: init
if: ${{ needs.init.outputs.skip == 'false' }}
runs-on: ubuntu-latest
strategy:
matrix:
ghc: ["810", "902", "904"]
steps:
- uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: build & push images
run: |
HS_DIR='.' ./build.sh build_haskell${{ matrix.ghc }}
HS_DIR='.' ./build.sh build_haskell${{ matrix.ghc }}_rq
HS_DIR='.' ./build.sh push_haskell${{ matrix.ghc }}
HS_DIR='.' ./build.sh push_haskell${{ matrix.ghc }}_rq
HS_DIR='.' ./build.sh push_haskell${{ matrix.ghc }}_manifest
HS_DIR='.' ./build.sh push_haskell${{ matrix.ghc }}_manifest_rq
if [ "${{ matrix.ghc }}" = "902" ]; then
echo "Push latest"
HS_DIR='.' ./build.sh push_haskell_latest_manifest 9.2.8
HS_DIR='.' ./build.sh push_haskell_latest_manifest_rq 9.2.8
fi