Commit ab400a6

HPCesia <me@hpcesia.com>
2026-05-25 15:59:42
Automatically build and push image to registry
1 parent f31080f
Changed files (1)
.forgejo
.forgejo/workflows/push-image.yml
@@ -0,0 +1,20 @@
+name: Build and push image
+
+on:
+  push:
+    branches:
+      - main
+  workflow_dispatch:
+
+jobs:
+  push-image:
+    runs-on: nixos-latest-high
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout@v4
+
+      - name: Login to container registry
+        run: echo "${{ secrets.REGISTRY_PASSWORD }}" | podman login repo.hpcesia.com --username HPCesia --password-stdin
+
+      - name: Build and push image
+        run: nix run .#packages.x86_64-linux.default.copyToRegistry