2021-05-30 22:08:30 +00:00
|
|
|
name: Release Nightly
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "master"
|
|
|
|
jobs:
|
|
|
|
release-nightly:
|
2023-08-09 13:32:37 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2021-05-30 22:08:30 +00:00
|
|
|
strategy:
|
|
|
|
fail-fast: true
|
|
|
|
matrix:
|
2023-11-06 09:51:09 +00:00
|
|
|
java: [ 'openjdk@1.17' ]
|
2021-05-30 22:08:30 +00:00
|
|
|
steps:
|
2023-10-17 16:56:59 +00:00
|
|
|
- uses: actions/checkout@v4.1.1
|
2021-05-30 22:08:30 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2023-02-18 12:25:58 +00:00
|
|
|
- uses: olafurpg/setup-scala@v14
|
2021-05-30 22:08:30 +00:00
|
|
|
with:
|
|
|
|
java-version: ${{ matrix.java }}
|
2023-03-09 11:01:14 +00:00
|
|
|
- uses: jorelali/setup-elm@v5
|
2021-05-30 22:08:30 +00:00
|
|
|
with:
|
|
|
|
elm-version: 0.19.1
|
|
|
|
- uses: bahmutov/npm-install@v1
|
2021-06-22 21:40:42 +00:00
|
|
|
with:
|
|
|
|
working-directory: modules/webapp
|
2022-04-09 12:35:47 +00:00
|
|
|
# - name: Coursier cache
|
|
|
|
# uses: coursier/cache-action@v6
|
2021-05-30 22:08:30 +00:00
|
|
|
- name: Set current version
|
|
|
|
run: echo "DOCSPELL_VERSION=$(cat version.sbt | grep version | cut -d= -f2 | xargs)" >> $GITHUB_ENV
|
|
|
|
- name: sbt ci ${{ github.ref }}
|
|
|
|
run: sbt ci
|
2024-03-07 20:46:14 +00:00
|
|
|
env:
|
|
|
|
SBT_OPTS: "-Xmx2G -Xss4m"
|
2021-05-30 22:08:30 +00:00
|
|
|
- name: sbt make-pkg (${{ env.DOCSPELL_VERSION }})
|
|
|
|
run: sbt make-pkg
|
2024-03-07 20:46:14 +00:00
|
|
|
env:
|
|
|
|
SBT_OPTS: "-Xmx2G -Xss4m"
|
2021-05-30 22:08:30 +00:00
|
|
|
- uses: "marvinpinto/action-automatic-releases@latest"
|
|
|
|
with:
|
|
|
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
|
|
automatic_release_tag: "nightly"
|
|
|
|
prerelease: true
|
|
|
|
title: "Docspell Nightly"
|
|
|
|
files: |
|
|
|
|
modules/restserver/target/docspell-restserver_${{ env.DOCSPELL_VERSION }}_all.deb
|
|
|
|
modules/restserver/target/universal/docspell-restserver-${{ env.DOCSPELL_VERSION }}.zip
|
|
|
|
modules/joex/target/docspell-joex_${{ env.DOCSPELL_VERSION }}_all.deb
|
|
|
|
modules/joex/target/universal/docspell-joex-${{ env.DOCSPELL_VERSION }}.zip
|
2021-06-08 20:33:12 +00:00
|
|
|
- name: Set up QEMU
|
2023-09-15 07:48:43 +00:00
|
|
|
uses: docker/setup-qemu-action@v3
|
2021-06-08 20:33:12 +00:00
|
|
|
- name: Set up Docker Buildx
|
|
|
|
id: buildx
|
2023-10-03 08:37:31 +00:00
|
|
|
uses: docker/setup-buildx-action@v3
|
2021-05-30 22:08:30 +00:00
|
|
|
- name: Log in to Docker Hub
|
2023-10-03 20:15:12 +00:00
|
|
|
uses: docker/login-action@v3
|
2021-05-30 22:08:30 +00:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
2021-06-08 20:33:12 +00:00
|
|
|
- name: Build and push Docker Images (${{ env.DOCSPELL_VERSION }})
|
|
|
|
run: ./docker/dockerfiles/build.sh ${{ env.DOCSPELL_VERSION }} --push
|