-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (35 loc) · 939 Bytes
/
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
37
38
39
40
41
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
schedule:
- cron: '30 22 * * 0'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- IMAGE_NAME: alpine
- IMAGE_NAME: centos
- IMAGE_NAME: debian
- IMAGE_NAME: fedora
- IMAGE_NAME: ubuntu
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 50 # the same value as Travis CI
- name: Install jq
run: sudo apt-get install -y jq
- name: Run build script
run: ./build.sh
env:
IMAGE_NAME: ${{ matrix.IMAGE_NAME }}
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
COMMIT_FROM: ${{ github.event.before }}
COMMIT_TO: ${{ github.event.after }}
GITHUB_EVENT: ${{ github.event_name }}