Skip to content

build

build #125

Workflow file for this run

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