Skip to content

Commit

Permalink
gha: nightly
Browse files Browse the repository at this point in the history
Signed-off-by: Paweł Gronowski <[email protected]>
  • Loading branch information
vvoland committed Jul 5, 2024
1 parent 2af20a9 commit fea1e5c
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 36 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/ci.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: nightly

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch: {}

jobs:
build:
runs-on: selfhosted
strategy:
fail-fast: false
matrix:
target:
- debian-bookworm
steps:
#-
# name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3

-
name: Checkout
uses: actions/checkout@v3

-
name: Build
run: |
export VERSION=master
export REF=master
export DOCKER_BUILDX_REF=master
export DOCKER_COMPOSE_REF=main
make ${{ matrix.target }}
-
name: Artifact
uses: actions/upload-artifact@v4
with:
name: nightly-${{ matrix.target }}
path: deb/debbuild/${{ matrix.target }}
retention-days: 3
2 changes: 1 addition & 1 deletion deb/gen-deb-ver
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ debVersion="${debVersion//-/$tilde}"

# if we have a "-dev" suffix or have change in Git, this is a nightly build, and
# we'll create a pseudo version based on commit-date and -sha.
if [[ "$VERSION" == *-dev ]] || [ -n "$($GIT_COMMAND status --porcelain)" ]; then
if [[ "$VERSION" == *-dev ]] || [ "$VERSION" == "master" ] || [ "$VERSION" == "main" ] || [ -n "$($GIT_COMMAND status --porcelain)" ]; then
export TZ=UTC

# based on golang's pseudo-version: https://groups.google.com/forum/#!topic/golang-dev/a5PqQuBljF4
Expand Down

0 comments on commit fea1e5c

Please sign in to comment.