li7y/.forgejo/workflows/build.yaml

29 lines
790 B
YAML
Raw Normal View History

2024-07-14 20:51:30 +02:00
# SPDX-FileCopyrightText: 2024 Simon Bruder <simon@sbruder.de>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
on: [push]
jobs:
2024-07-19 12:22:27 +02:00
build:
runs-on: nix
2024-07-14 20:51:30 +02:00
steps:
2024-07-19 12:31:28 +02:00
- name: Checkout
uses: actions/checkout@v4
2024-07-14 20:51:30 +02:00
- name: Build
2024-07-19 12:22:27 +02:00
run: nix build -L .#li7y .#li7y-oci
- name: Push OCI image
2024-07-14 20:51:30 +02:00
run: |
nix build .#li7y-oci
podman image load -i ./result
2024-07-19 12:44:09 +02:00
- 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
username: simon
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Print image url
run: echo "Image pushed to ${{ steps.push-oci.outputs.registry-paths }}"