Publish client-only Flood releases with weekly upstream checks
This commit is contained in:
1 parent
1d412506f8
commit
d2159ec66f
4 files changed
+194
-10
No files matched your search
@@ -1,18 +1,43 @@
|
||||
name: Build and Push Distroless Flood
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '17 9 * * 1'
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
flood_version:
|
||||
description: 'jesec/flood release tag'
|
||||
description: 'jesec/flood release tag, or auto to check for a new stable release'
|
||||
required: true
|
||||
default: 'v4.16.2'
|
||||
default: 'auto'
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: kube
|
||||
if: ((github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || github.event.schedule != '') && github.ref == 'refs/heads/main') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v'))
|
||||
outputs:
|
||||
version: ${{ steps.release.outputs.version }}
|
||||
should_build: ${{ steps.release.outputs.should_build }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Select Flood release
|
||||
id: release
|
||||
env:
|
||||
SOURCE_REF: ${{ github.ref }}
|
||||
FLOOD_VERSION: ${{ github.event.inputs.flood_version }}
|
||||
run: node build/check-release.cjs
|
||||
|
||||
build:
|
||||
needs: release
|
||||
if: needs.release.outputs.should_build == 'true'
|
||||
runs-on: kube
|
||||
if: github.ref == 'refs/heads/main'
|
||||
env:
|
||||
DOCKER_BUILD_RECORD_UPLOAD: 'false'
|
||||
DOCKER_BUILD_SUMMARY: 'false'
|
||||
@@ -24,7 +49,7 @@ jobs:
|
||||
|
||||
- name: Fetch Flood release
|
||||
env:
|
||||
FLOOD_VERSION: ${{ github.event.inputs.flood_version }}
|
||||
FLOOD_VERSION: ${{ needs.release.outputs.version }}
|
||||
run: |
|
||||
test -n "$FLOOD_VERSION" || { echo "flood_version is required" >&2; exit 1; }
|
||||
git check-ref-format "refs/tags/$FLOOD_VERSION"
|
||||
@@ -65,7 +90,10 @@ jobs:
|
||||
pull: true
|
||||
push: true
|
||||
load: false
|
||||
tags: docker.io/k2patel/floodui:latest
|
||||
tags: |
|
||||
docker.io/k2patel/floodui:latest
|
||||
docker.io/k2patel/floodui:${{ needs.release.outputs.version }}
|
||||
labels: |
|
||||
org.opencontainers.image.source=https://git.k2patel.in/k2patel/docker-flood-client
|
||||
org.opencontainers.image.revision=${{ github.sha }}
|
||||
org.opencontainers.image.version=${{ needs.release.outputs.version }}
|
||||
Reference in new issue
Block a user