This repository has been archived by the owner on Sep 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
76 lines (73 loc) · 2.48 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Build
on:
pull_request:
push:
branches:
- master
jobs:
continuous-integration:
strategy:
fail-fast: false
matrix:
env:
- library-version: 1.2.0-beta.5
container-runtime-version: 2.2.5
container-runtime: alpine3.9
runtime: alpine-x64
os-version: Alpine 3.9
- library-version: 1.2.0-beta.5
container-runtime-version: 2.2.5
container-runtime: alpine3.8
runtime: alpine-x64
os-version: Alpine 3.8
- library-version: 1.2.0-beta.5
container-runtime-version: 2.2.5
container-runtime: stretch-slim
runtime: debian.9-x64
os-version: Debian 9
- library-version: 1.2.0-beta.5
container-runtime-version: 2.2.5
container-runtime: bionic
runtime: ubuntu.18.04-x64
os-version: Ubuntu 18.04
runs-on: ubuntu-latest
name: continuous-integration/github/${{ matrix.env.container-runtime }}
steps:
- name: checkout
uses: actions/checkout@master
- name: build
run: "./build.sh"
env:
REMOTE_IMAGE: sqlstreamstore/server
LIBRARY_VERSION: ${{ matrix.env.library-version }}
CONTAINER_RUNTIME_VERSION: ${{ matrix.env.container-runtime-version }}
CONTAINER_RUNTIME: ${{ matrix.env.container-runtime }}
RUNTIME: ${{ matrix.env.runtime }}
- name: Docker Login
uses: actions/docker/login@fe7ed3c
if: github.event_name == 'push'
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
- name: Docker Push
uses: actions/docker/cli@fe7ed3c
if: github.event_name == 'push'
with:
args: push sqlstreamstore/server
docker-hub-docs:
runs-on: ubuntu-latest
needs: continuous-integration
steps:
- name: checkout
uses: actions/checkout@master
- name: Generate Docker Tag List
uses: ./.github/actions/docker-tag-list
if: github.event_name == 'push'
- name: Publish Docker Hub Readme
uses: peter-evans/[email protected]
env:
DOCKERHUB_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKERHUB_REPOSITORY: sqlstreamstore/server
README_FILEPATH: ./README.dockerhub.md
if: github.event_name == 'push'