li7y/.forgejo/workflows/build.yaml
Simon Bruder 93657205ba
Some checks failed
/ build (push) Failing after 38s
fixup! Add CI workflow
2024-07-20 13:27:18 +02:00

36 lines
997 B
YAML

# SPDX-FileCopyrightText: 2024 Simon Bruder <simon@sbruder.de>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
on:
push:
branches:
- master
env:
GIT_CURL_VERBOSE: 1
jobs:
build:
runs-on: nix
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout LFS
run: |
cat .git/config
#git config --unset "http.${GITHUB_SERVER_URL}/.extraHeader"
#cat .git/config
git lfs install --local
git -c "http.${GITHUB_SERVER_URL}/.extraHeader=" lfs pull
head -c 512 static/vendor/bootstrap.min.css
- 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