2024-04-27 22:17:59 +00:00
|
|
|
on: [ push ]
|
|
|
|
jobs:
|
|
|
|
push:
|
|
|
|
runs-on: docker
|
|
|
|
container:
|
2024-04-28 18:26:21 +00:00
|
|
|
image: git.kun.is/home/forgejo-nix-action:687d16c49ea7936068bac64ec68c480a9d681962
|
2024-04-27 22:17:59 +00:00
|
|
|
steps:
|
|
|
|
- name: Clone repository
|
|
|
|
run: git clone https://git.kun.is/home/container-images.git checkout
|
2024-04-28 20:05:55 +00:00
|
|
|
- run: ls -alh /run/containers/30001/auth.json || true
|
2024-04-27 22:17:59 +00:00
|
|
|
- name: Setup Nix cache
|
|
|
|
run: |
|
|
|
|
/bin/attic login local https://attic.kun.is ${{ secrets.ATTIC_TOKEN }}
|
|
|
|
/bin/attic use home
|
2024-04-28 20:21:21 +00:00
|
|
|
# - name: Log into container registry
|
|
|
|
# # run: echo -n "${{ secrets.RUNNER_TOKEN }}" | /bin/docker login https://git.kun.is --username pim --password-stdin
|
|
|
|
# run: /bin/skopeo login --username pim --password ${{ secrets.RUNNER_TOKEN }} https://git.kun.is
|
2024-04-28 20:05:55 +00:00
|
|
|
- run: ls -alh /run/containers/30001/auth.json || true
|
2024-04-28 08:52:30 +00:00
|
|
|
- name: Build Pim's blog
|
2024-04-28 18:26:21 +00:00
|
|
|
run: nix build --out-link blog-pim ./checkout#packages.x86_64-linux.blog-pim
|
2024-04-28 08:52:30 +00:00
|
|
|
- name: Push Pim's blog to Nix cache
|
|
|
|
run: /bin/attic push home blog-pim
|
2024-04-28 20:21:57 +00:00
|
|
|
# - name: Push Pim's blog to container registry
|
2024-04-28 20:21:21 +00:00
|
|
|
# run: /bin/skopeo --insecure-policy copy docker-archive:./blog-pim docker://git.kun.is/home/forgejo-nix-action:latest
|
2024-04-28 20:05:55 +00:00
|
|
|
- run: ls -alh /run/containers/30001/auth.json || true
|
2024-04-28 08:52:30 +00:00
|
|
|
- name: Build Atticd
|
2024-04-28 19:29:15 +00:00
|
|
|
run: nix build --out-link atticd ./checkout#packages.x86_64-linux.atticd
|
2024-04-28 08:52:30 +00:00
|
|
|
- name: Push atticd to Nix cache
|
|
|
|
run: /bin/attic push home atticd
|
2024-04-28 19:29:15 +00:00
|
|
|
- name: Build forgejo-nix-action
|
|
|
|
run: nix build --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
|