Skip to content

Commit

Permalink
Don't push PR builds to cachix
Browse files Browse the repository at this point in the history
  • Loading branch information
welteki committed Sep 1, 2023
1 parent 20febf6 commit 0baca73
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,12 @@ jobs:
- name: Build faasd 🔧
run: |
nix build -L .#faasd
nix eval --json .#faasd | jq -r | cachix push welteki
- name: Build containerd 🔧
run: |
nix build -L .#faasd-containerd
nix eval --json .#faasd-containerd | jq -r | cachix push welteki
- name: Build cni-plugin 🔧
run: |
nix build -L .#faasd-cni-plugins
nix eval --json .#faasd-cni-plugins | jq -r | cachix push welteki
- name: Build OpenFaaS core images 🔧
run: |
nix build .#gateway-image \
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 'Build an push to cachix'
on:
push:
branches:
- master
jobs:
cachix-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@v4
- uses: cachix/cachix-action@v12
with:
name: welteki
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
skipPush: true
- name: Build faasd 🔧
run: |
nix build -L .#faasd
nix eval --json .#faasd | jq -r | cachix push welteki
- name: Build containerd 🔧
run: |
nix build -L .#faasd-containerd
nix eval --json .#faasd-containerd | jq -r | cachix push welteki
- name: Build cni-plugin 🔧
run: |
nix build -L .#faasd-cni-plugins
nix eval --json .#faasd-cni-plugins | jq -r | cachix push welteki

0 comments on commit 0baca73

Please sign in to comment.