container-images/.forgejo/workflows/cache.yaml
Pim Kunis 59fba416a2
All checks were successful
/ push (push) Successful in 1m42s
Log into container registry
2024-04-28 12:46:32 +02:00

27 lines
1.5 KiB
YAML

on: [ push ]
jobs:
push:
runs-on: docker
container:
image: git.kun.is/home/forgejo-nix-action:958559e3184d8f044136ad49ed57f0badb67789c
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
- name: Log into container registry
run: echo -n "${{ secrets.RUNNER_TOKEN }}" | /bin/docker login https://git.kun.is --username pim --password-stdin
- 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
- 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