Add gitea ci workflow
Build and Deploy / deploy (push) Failing after 37m6s

This commit is contained in:
2026-06-04 18:14:53 +02:00
parent a32bfd5108
commit 3f35c670ca
2 changed files with 46 additions and 5 deletions
+21
View File
@@ -0,0 +1,21 @@
name: Build and Deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: nix-ci
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build docker
run: nix run nixpkgs#devenv shell build-docker
- name: Deploy docker
env:
REGISTRY_USERNAME: ${{ secrets.CONTAINER_REGISTRY_GITEA_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.CONTAINER_REGISTRY_GITEA_PASSWORD }}
run: nix run nixpkgs#devenv shell deploy-docker
+25 -5
View File
@@ -1,5 +1,4 @@
{ pkgs, ... }: {pkgs, ...}: {
{
android = { android = {
enable = true; enable = true;
emulator.enable = false; emulator.enable = false;
@@ -46,10 +45,31 @@
}; };
scripts = { scripts = {
deploy-docker.exec = '' build-docker.exec = ''
dart run pdfrx:remove_wasm_modules --revert // Make sure WASM is put in output
flutter build web --release flutter build web --release
docker build -t harbor.julian-mutter.de/sheetless/sheetless-frontend .
docker push harbor.julian-mutter.de/sheetless/sheetless-frontend docker build -t gitlab.julian-mutter.de/julian/sheetless-frontend:latest .
'';
deploy-docker.exec = ''
if [ -n "''${REGISTRY_USERNAME:-}" ] && [ -n "''${REGISTRY_PASSWORD:-}" ]; then
docker login gitlab.julian-mutter.de --username "$REGISTRY_USERNAME" --password "$REGISTRY_PASSWORD"
fi
docker push gitlab.julian-mutter.de/julian/sheetless-frontend
'';
build-android.exec = ''
dart run pdfrx:remove_wasm_modules --revert // Make sure WASM is put in output
dart run pdfrx:remove_wasm_modules // NOT idempotent!
flutter build apk --release
'';
deploy-android.exec = ''
echo "TBD"
''; '';
}; };
} }