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:
|
|
|
|
ls:
|
|
|
|
runs-on: docker
|
|
|
|
steps:
|
|
|
|
- name: Prepare dependencies
|
|
|
|
run: apt-get update && apt-get install sudo
|
|
|
|
- name: Checkout
|
|
|
|
uses: https://code.forgejo.org/actions/checkout@v4
|
|
|
|
- name: Install Nix
|
|
|
|
uses: https://github.com/cachix/install-nix-action@v27
|
|
|
|
- name: Build
|
|
|
|
run: |
|
2024-07-14 20:53:02 +02:00
|
|
|
nix build .#li7y-oci
|
2024-07-14 20:51:30 +02:00
|
|
|
podman image load -i ./result
|
|
|
|
- name: Push
|
|
|
|
id: push
|
|
|
|
uses: https://github.com/redhat-actions/push-to-registry@v2
|
|
|
|
with:
|
|
|
|
image: ${{ steps.build-image.outputs.image }}
|
|
|
|
tags: ${{ steps.build-image.outputs.tags }}
|
|
|
|
username: simon
|
|
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
|
|
- name: Print image url
|
|
|
|
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"
|