li7y/.forgejo/workflows/build.yaml

35 lines
916 B
YAML
Raw Normal View History

2024-07-19 15:29:24 +02:00
# SPDX-FileCopyrightText: 2024 Simon Bruder <simon@sbruder.de>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
on:
push:
branches:
- master
2024-07-20 13:07:46 +02:00
env:
GIT_CURL_VERBOSE: 1
2024-07-19 15:29:24 +02:00
jobs:
build:
runs-on: nix
steps:
- name: Checkout
2024-07-20 13:12:37 +02:00
uses: actions/checkout@v4
2024-07-20 13:12:10 +02:00
- name: Checkout LFS
2024-07-20 13:17:43 +02:00
run: |
2024-07-20 13:21:07 +02:00
cat .git/config
2024-07-20 13:22:28 +02:00
git config --unset "http.${GITHUB_SERVER_URL}/.extraHeader"
cat .git/config
git lfs pull
2024-07-20 13:24:18 +02:00
head -c 512 static/vendor/bootstrap.min.css
2024-07-19 15:29:24 +02:00
- name: Build
run: nix build -L .#li7y .#li7y-oci
- name: Push OCI image
run: |
nix build .#li7y-oci
podman image load -i ./result
podman tag li7y git.sbruder.de/simon/li7y:latest
podman login --username simon --password "${{ secrets.REGISTRY_PASSWORD }}" git.sbruder.de
podman push git.sbruder.de/simon/li7y:latest