This commit is contained in:
+11
-11
@@ -1,24 +1,24 @@
|
||||
name: Build flock Image
|
||||
name: flock
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
jobs:
|
||||
build:
|
||||
release:
|
||||
runs-on: fritzlab
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: https://code.fritzlab.net/fritzlab/build-image@v1
|
||||
- uses: https://code.fritzlab.net/action/image-build@v1
|
||||
with:
|
||||
image: code.fritzlab.net/fritzlab/flock
|
||||
build-args: GIT_SHA=${{ github.sha }}
|
||||
smoke-test: |
|
||||
docker run --rm $IMAGE --help || true
|
||||
docker run --rm --entrypoint /usr/local/bin/flock $IMAGE || true
|
||||
|
||||
- uses: https://code.fritzlab.net/action/image-push@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
|
||||
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
name: flock PR validation
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
jobs:
|
||||
validate:
|
||||
runs-on: fritzlab
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://code.fritzlab.net/action/image-build@v1
|
||||
with:
|
||||
image: code.fritzlab.net/fritzlab/flock
|
||||
build-args: GIT_SHA=${{ github.sha }}
|
||||
smoke-test: |
|
||||
docker run --rm $IMAGE --help || true
|
||||
docker run --rm --entrypoint /usr/local/bin/flock $IMAGE || true
|
||||
Reference in New Issue
Block a user