Compare commits

..

8 Commits

Author SHA1 Message Date
julian 0b2f042faa ci: switch upload to registry to not use separate login
Build and Deploy / deploy (push) Successful in 11s
2026-06-11 21:20:38 +02:00
julian ee42516bed ci: switch runner to nixos
Build and Deploy / deploy (push) Failing after 1m41s
2026-06-11 21:13:16 +02:00
julian 7e06360e2c ci: fix mission backslash
Build and Deploy / deploy (push) Successful in 1m32s
2026-06-04 16:53:45 +02:00
julian cab435ec50 Use insecure policy for skopeo
Build and Deploy / deploy (push) Failing after 1m27s
2026-06-04 16:51:28 +02:00
julian 0984c787b7 Make use of new nix-ci runner
Build and Deploy / deploy (push) Failing after 3m12s
2026-06-04 16:42:35 +02:00
julian 1effab5812 ci: Use cachix instead of determinate systems installer
Build and Deploy / deploy (push) Failing after 1m0s
2026-06-04 12:36:27 +02:00
julian fecf2e019d ci: go back to ubuntu-latest
Build and Deploy / deploy (push) Failing after 1m8s
2026-06-04 12:29:56 +02:00
julian 88e21c85e9 ci: use devenv container
Build and Deploy / deploy (push) Failing after 3s
2026-06-04 12:13:52 +02:00
2 changed files with 14 additions and 11 deletions
+1 -3
View File
@@ -7,13 +7,11 @@ on:
jobs:
deploy:
runs-on: nixos
env:
NIX_CONFIG: "experimental-features = nix-command flakes"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build and Push Docker Image
- name: Build and deploy
env:
REGISTRY_USERNAME: ${{ secrets.CONTAINER_REGISTRY_GITEA_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.CONTAINER_REGISTRY_GITEA_PASSWORD }}
+13 -8
View File
@@ -24,17 +24,22 @@
# 2. Authenticate if CI environment variables are present
if [ -n "''${REGISTRY_USERNAME:-}" ] && [ -n "''${REGISTRY_PASSWORD:-}" ]; then
echo "CI Environment detected: Logging in to registry."
${pkgs.skopeo}/bin/skopeo login gitlab.julian-mutter.de \
--username "''${REGISTRY_USERNAME}" \
--password "''${REGISTRY_PASSWORD}"
# 3. Upload to container registry
${pkgs.skopeo}/bin/skopeo copy \
--dest-creds "''${REGISTRY_USERNAME}:''${REGISTRY_PASSWORD}" \
--insecure-policy \
docker-archive:result \
docker://gitlab.julian-mutter.de/julian/sheetless-server:latest
else
echo "Local Environment detected: Skipping login, relying on existing auth."
fi
# 3. Upload to container registry
${pkgs.skopeo}/bin/skopeo copy \
docker-archive:result \
docker://gitlab.julian-mutter.de/julian/sheetless-server:latest
# 3. Upload to container registry
${pkgs.skopeo}/bin/skopeo copy \
--insecure-policy \
docker-archive:result \
docker://gitlab.julian-mutter.de/julian/sheetless-server:latest
fi
'';
in {
devShells.default = pkgs.mkShell {