25 lines
694 B
YAML
25 lines
694 B
YAML
name: Build flock Image
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
jobs:
|
|
build:
|
|
runs-on: fritzlab
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: https://code.fritzlab.net/fritzlab/build-image@v1
|
|
with:
|
|
image: code.fritzlab.net/fritzlab/flock
|
|
token: ${{ secrets.CI_BOT_TOKEN }}
|
|
org: fritzlab
|
|
name: flock
|
|
build-args: GIT_SHA=${{ github.sha }}
|
|
|
|
- name: Smoke-test image
|
|
run: |
|
|
docker run --rm code.fritzlab.net/fritzlab/flock:${{ github.run_number }} --help || true
|
|
docker run --rm --entrypoint /usr/local/bin/flock \
|
|
code.fritzlab.net/fritzlab/flock:${{ github.run_number }} || true
|
|
|