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 15:11:11 +02:00
|
|
|
env
|
2024-07-19 15:04:52 +02:00
|
|
|
podman login --username simon --password "${REGISTRY_PASSWORD}" git.sbruder.de
|
|
|
|
podman tag li7y git.sbruder.de/simon/li7y:latest
|
|
|
|
podman push git.sbruder.de/simon/li7y:latest
|