caddy-with-modules/.forgejo/workflows/cachix.yaml

64 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2024-10-31 11:24:51 +05:30
name: Build and Push to Cachix
on:
push:
branches:
- main
workflow_run:
workflows: ['Update Inputs']
types: [completed]
branches:
- main
workflow_dispatch:
jobs:
publish-x86_64:
name: Push to Binary Cache (X86-64)
runs-on: x86_64-docker
container:
image: ghcr.io/catthehacker/ubuntu:act-22.04
steps:
2024-11-01 10:55:40 +05:30
- uses: actions/checkout@v4
2024-10-31 11:24:51 +05:30
2024-11-01 10:55:40 +05:30
- uses: https://github.com/DeterminateSystems/nix-installer-action@main
2024-10-31 11:24:51 +05:30
with:
2024-11-01 10:55:40 +05:30
extra-conf: |
access-tokens = ${{ secrets.GH_PUBLIC_REPO_ACCESS_TOKEN }}
2024-10-31 11:24:51 +05:30
2024-11-01 10:55:40 +05:30
- uses: https://github.com/DeterminateSystems/magic-nix-cache-action@main
- name: Setup Cachix
2024-10-31 11:24:51 +05:30
uses: https://github.com/cachix/cachix-action@v15
with:
name: adtya
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Build and push flake output
run: |
2024-11-01 10:55:40 +05:30
nix build -L .#caddy
2024-10-31 11:24:51 +05:30
publish-aarch64:
name: Push to Binary Cache (aarch64)
runs-on: aarch64-docker
container:
image: ghcr.io/catthehacker/ubuntu:act-22.04
steps:
2024-11-01 10:55:40 +05:30
- uses: actions/checkout@v4
2024-10-31 11:24:51 +05:30
2024-11-01 10:55:40 +05:30
- uses: https://github.com/DeterminateSystems/nix-installer-action@main
2024-10-31 11:24:51 +05:30
with:
2024-11-01 10:55:40 +05:30
extra-conf: |
access-tokens = ${{ secrets.GH_PUBLIC_REPO_ACCESS_TOKEN }}
- uses: https://github.com/DeterminateSystems/magic-nix-cache-action@main
2024-10-31 11:24:51 +05:30
2024-11-01 10:55:40 +05:30
- name: Setup Cachix
2024-10-31 11:24:51 +05:30
uses: https://github.com/cachix/cachix-action@v15
with:
name: adtya
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Build and push flake output
run: |
2024-11-01 10:55:40 +05:30
nix build -L .#caddy
2024-10-31 11:24:51 +05:30