-
Notifications
You must be signed in to change notification settings - Fork 25
36 lines (34 loc) · 1 KB
/
build.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
name: build
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
version: [5.0.0-alpha, 4.10.0, 4.9.0]
dist: ["alpine", "debian", "fedora", "ubuntu"]
steps:
- uses: actions/checkout@v2
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build
run: make build CV=${{ matrix.version }} DIST=${{ matrix.dist }}
- name: Test
run: make test CV=${{ matrix.version }} DIST=${{ matrix.dist }}
- name: Push
run: make push CV=${{ matrix.version }} DIST=${{ matrix.dist }}
latest:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Latest
run: make latest CV=5.0.0-alpha DIST=fedora