li7y/.forgejo/workflows/build.yaml
Simon Bruder 6429f6abd0
Some checks failed
/ build (push) Failing after 26s
fixup! WIP CI
2024-07-19 15:00:53 +02:00

30 lines
825 B
YAML

# SPDX-FileCopyrightText: 2024 Simon Bruder <simon@sbruder.de>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
on: [push]
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
- name: Push OCI image
id: push-oci
uses: https://github.com/redhat-actions/push-to-registry@v2
with:
image: git.sbruder.de/simon/li7y
tags: latest
registry: git.sbruder.de
username: simon
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Print image url
run: echo "Image pushed to ${{ steps.push-oci.outputs.registry-paths }}"