This commit is contained in:
parent
8414f5fcf4
commit
e4fb62f1c9
24
.forgejo/workflows/build.yaml
Normal file
24
.forgejo/workflows/build.yaml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# SPDX-FileCopyrightText: 2024 Simon Bruder <simon@sbruder.de>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: nix
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Build
|
||||||
|
run: nix build -L .#li7y .#li7y-oci
|
||||||
|
- name: Push OCI image
|
||||||
|
run: |
|
||||||
|
nix build .#li7y-oci
|
||||||
|
podman image load -i ./result
|
||||||
|
podman tag li7y git.sbruder.de/simon/li7y:latest
|
||||||
|
podman login --username simon --password "${{ secrets.REGISTRY_PASSWORD }}" git.sbruder.de
|
||||||
|
podman push git.sbruder.de/simon/li7y:latest
|
Loading…
Reference in a new issue