This repository has been archived on 2024-10-01. You can view files and clone it, but cannot push or open issues or pull requests.
container-images/.forgejo/workflows/cache.yaml
Pim Kunis 3bd9676ba0
Some checks failed
/ blog-pim (push) Successful in 59s
/ atticd (push) Successful in 57s
/ forgejo-nix-action (push) Failing after 5s
Split workflow into three tasks
Remove logouts from container registry
2024-04-28 22:49:26 +02:00

53 lines
2.6 KiB
YAML

on: [ push ]
jobs:
blog-pim:
runs-on: docker
container:
image: git.kun.is/home/forgejo-nix-action:687d16c49ea7936068bac64ec68c480a9d681962
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: Build blog-pim
run: nix build --out-link blog-pim ./checkout#packages.x86_64-linux.blog-pim
- name: Push blog-pim to Nix cache
run: /bin/attic push home blog-pim
- name: Log into container registry
run: /bin/skopeo login --tls-verify --username pim --password ${{ secrets.RUNNER_TOKEN }} https://git.kun.is
- name: Push blog-pim to container registry
run: /bin/skopeo --insecure-policy copy docker-archive:./blog-pim docker://git.kun.is/home/forgejo-nix-action:latest
atticd:
runs-on: docker
container:
image: git.kun.is/home/forgejo-nix-action:687d16c49ea7936068bac64ec68c480a9d681962
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: Build Atticd
run: nix build --out-link atticd ./checkout#packages.x86_64-linux.atticd
- name: Push atticd to Nix cache
run: /bin/attic push home atticd
- name: Log into container registry
run: /bin/skopeo login --tls-verify --username pim --password ${{ secrets.RUNNER_TOKEN }} https://git.kun.is
- name: Push atticd to container registry
run: /bin/skopeo --insecure-policy copy docker-archive:./atticd docker://git.kun.is/home/atticd:latest
forgejo-nix-action:
runs-on: docker
container:
image: git.kun.is/home/forgejo-nix-action:687d16c49ea7936068bac64ec68c480a9d681962
steps:
- 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
- name: Log into container registry
run: /bin/skopeo login --tls-verify --username pim --password ${{ secrets.RUNNER_TOKEN }} https://git.kun.is
- name: Push forgejo-nix-action to container registry
run: /bin/skopeo --insecure-policy copy docker-archive:./forgejo-nix-action docker://git.kun.is/home/forgejo-nix-action:latest