Now that I'm adding more logging, I wanted to add a log viewer so people don't have to ssh to their servers to inspect logs. Also added tests around logging and the viewer. Reviewed-on: https://gitea.subcultureofone.org/greg/tkr/pulls/41 Co-authored-by: Greg Sarjeant <greg@subcultureofone.org> Co-committed-by: Greg Sarjeant <greg@subcultureofone.org>
28 lines
964 B
YAML
28 lines
964 B
YAML
name: Build and publish artifacts
|
|
run-name: ${{ gitea.repository }} build and publish
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*.**.**
|
|
|
|
jobs:
|
|
build-and-publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Build archive
|
|
run: |
|
|
tar \
|
|
--transform 's,^,tkr/,' \
|
|
--exclude='storage/db' \
|
|
--exclude='storage/logs' \
|
|
--exclude='storage/upload' \
|
|
-czvf tkr.${{ gitea.ref_name }}.tgz \
|
|
check-prerequisites.php config public src storage templates
|
|
- name: Push to Generic gitea registry
|
|
run: |
|
|
curl \
|
|
--user ${{ secrets.CONTAINER_REGISTRY_USERNAME}}:${{ secrets.CONTAINER_REGISTRY_TOKEN }} \
|
|
--upload-file tkr.${{ gitea.ref_name}}.tgz \
|
|
https://gitea.subcultureofone.org/api/packages/${{ secrets.CONTAINER_REGISTRY_USERNAME }}/generic/tkr/${{ gitea.ref_name }}/tkr.${{ gitea.ref_name }}.tgz
|