-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (44 loc) · 1.1 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
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@v3
with:
fetch-depth: 0
- name: check-if-skip
id: check-if-skip
uses: ./.github/actions/check-if-skip
with:
checksum-file: checksum/hsthrift.sha256sum
build:
needs: init
if: ${{ needs.init.outputs.skip == 'false' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
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