-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (46 loc) · 1.17 KB
/
ci_hsthrift.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
name: hsthrift
on:
push:
tags:
- "*"
branches:
- release
# XXX:
# pull_request:
env:
IMAGE: ghcr.io/hstreamdb/hsthrift:latest
jobs:
init:
runs-on: ubuntu-latest
outputs:
skip: ${{ steps.check-if-skip.outputs.skip }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- id: check-if-skip
run: |
if sha256sum -c checksum/hsthrift.sha256sum --status; then
echo "::set-output name=skip::true"
else
echo "::set-output name=skip::false"
fi
build:
needs: init
if: ${{ needs.init.outputs.skip == 'false' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: login to github container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build & Push images
run: |
HS_DIR='.' ./build.sh build_hsthrift
HS_DIR='.' ./build.sh push_hsthrift
HS_DIR='.' ./build.sh push_hsthrift_manifest