li7y/.forgejo/workflows/build.yaml
Simon Bruder 152f5b3780
Some checks failed
/ build (push) Has been cancelled
fixup! Add CI workflow
2024-07-20 12:52:49 +02:00

27 lines
681 B
YAML

# 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@v3
with:
lfs: true
- 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