container-images/.forgejo/workflows/cache.yaml

30 lines
1.7 KiB
YAML
Raw Normal View History

on: [ push ]
jobs:
push:
runs-on: docker
container:
2024-04-28 15:07:43 +00:00
image: git.kun.is/home/forgejo-nix-action:9b44b726c0b6eadc2e3006ec1fa1338a1a2e79f0
steps:
- name: Clone repository
run: git clone https://git.kun.is/home/container-images.git checkout
- name: Setup Nix cache
run: |
/bin/attic login local https://attic.kun.is ${{ secrets.ATTIC_TOKEN }}
/bin/attic use home
2024-04-28 10:46:32 +00:00
- name: Log into container registry
run: echo -n "${{ secrets.RUNNER_TOKEN }}" | /bin/docker login https://git.kun.is --username pim --password-stdin
2024-04-28 08:52:30 +00:00
- name: Build Pim's blog
run: nix build --extra-experimental-features nix-command --extra-experimental-features flakes --out-link blog-pim ./checkout#packages.x86_64-linux.blog-pim
- name: Push Pim's blog to Nix cache
run: /bin/attic push home blog-pim
2024-04-28 14:24:25 +00:00
- name: Push Pim's blog to container registry
run: nix --extra-experimental-features "nix-command flakes" run ./checkout#packages.x86_64-linux.release ./checkout#packages.x86_64-linux.blog-pim blog-pim
2024-04-28 08:52:30 +00:00
- name: Build forgejo-nix-action
run: nix build --extra-experimental-features nix-command --extra-experimental-features flakes --no-allow-dirty --out-link forgejo-nix-action ./checkout#packages.x86_64-linux.forgejo-nix-action
- name: Push forgjeo-nix-action to Nix cache
run: /bin/attic push home forgejo-nix-action
- name: Build Atticd
run: nix build --extra-experimental-features nix-command --extra-experimental-features flakes --no-allow-dirty --out-link atticd ./checkout#packages.x86_64-linux.atticd
- name: Push atticd to Nix cache
run: /bin/attic push home atticd