CI: Only gate OCI image push on branch
All checks were successful
/ build (push) Successful in 3m31s
All checks were successful
/ build (push) Successful in 3m31s
This commit is contained in:
parent
1f6298af4a
commit
a72d5b40e2
|
@ -4,8 +4,6 @@
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -25,6 +23,7 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: nix build -L .#li7y .#li7y-oci
|
run: nix build -L .#li7y .#li7y-oci
|
||||||
- name: Push OCI image
|
- name: Push OCI image
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
run: |
|
run: |
|
||||||
nix build .#li7y-oci
|
nix build .#li7y-oci
|
||||||
podman image load -i ./result
|
podman image load -i ./result
|
||||||
|
|
Loading…
Reference in a new issue