31 lines
957 B
YAML
31 lines
957 B
YAML
|
# 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: |
|
||
|
nix build .#i7y-container
|
||
|
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 }}"
|