Compare commits

..

10 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
julian b4c92b3dfc deploy: switch HARBOR env vars to REGISTRY
Build and Deploy / deploy (push) Failing after 3s
2026-06-04 12:03:02 +02:00
julian 872170ecaf ci: enable nix flakes experimental feature 2026-06-04 12:02:03 +02:00
2 changed files with 15 additions and 10 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Build and Push Docker Image - name: Build and deploy
env: env:
REGISTRY_USERNAME: ${{ secrets.CONTAINER_REGISTRY_GITEA_USERNAME }} REGISTRY_USERNAME: ${{ secrets.CONTAINER_REGISTRY_GITEA_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.CONTAINER_REGISTRY_GITEA_PASSWORD }} REGISTRY_PASSWORD: ${{ secrets.CONTAINER_REGISTRY_GITEA_PASSWORD }}
+14 -9
View File
@@ -23,18 +23,23 @@
# 2. Authenticate if CI environment variables are present # 2. Authenticate if CI environment variables are present
if [ -n "''${REGISTRY_USERNAME:-}" ] && [ -n "''${REGISTRY_PASSWORD:-}" ]; then if [ -n "''${REGISTRY_USERNAME:-}" ] && [ -n "''${REGISTRY_PASSWORD:-}" ]; then
echo "CI Environment detected: Logging in to Harbor." echo "CI Environment detected: Logging in to registry."
${pkgs.skopeo}/bin/skopeo login gitlab.julian-mutter.de \
--username "''${HARBOR_USERNAME}" \ # 3. Upload to container registry
--password "''${HARBOR_PASSWORD}" ${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 else
echo "Local Environment detected: Skipping login, relying on existing auth." echo "Local Environment detected: Skipping login, relying on existing auth."
fi
# 3. Upload to container registry # 3. Upload to container registry
${pkgs.skopeo}/bin/skopeo copy \ ${pkgs.skopeo}/bin/skopeo copy \
docker-archive:result \ --insecure-policy \
docker://gitlab.julian-mutter.de/julian/sheetless-server:latest docker-archive:result \
docker://gitlab.julian-mutter.de/julian/sheetless-server:latest
fi
''; '';
in { in {
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {