Commit ab400a6
Changed files (1)
.forgejo
workflows
.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