Compare commits
2 commits
0f9e42ef51
...
a520223ab9
Author | SHA1 | Date | |
---|---|---|---|
a520223ab9 | |||
8c0093c655 |
2 changed files with 34 additions and 49 deletions
49
.drone.yml
49
.drone.yml
|
@ -1,49 +0,0 @@
|
||||||
---
|
|
||||||
kind: secret
|
|
||||||
name: registry
|
|
||||||
get:
|
|
||||||
path: docker-push
|
|
||||||
name: registry
|
|
||||||
---
|
|
||||||
kind: secret
|
|
||||||
name: username
|
|
||||||
get:
|
|
||||||
path: docker-push
|
|
||||||
name: username
|
|
||||||
---
|
|
||||||
kind: secret
|
|
||||||
name: password
|
|
||||||
get:
|
|
||||||
path: docker-push
|
|
||||||
name: password
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: kubernetes
|
|
||||||
name: build
|
|
||||||
steps:
|
|
||||||
- name: nixos
|
|
||||||
image: docker.io/jcollie/nixos-runner:latest
|
|
||||||
pull: always
|
|
||||||
commands:
|
|
||||||
- set
|
|
||||||
- nix build -L .#webserver
|
|
||||||
- push-container result --repository jeff/healthchecks-webserver
|
|
||||||
- nix build -L .#smtpd
|
|
||||||
- push-container result --repository jeff/healthchecks-smtpd
|
|
||||||
- nix build -L .#sendalerts
|
|
||||||
- push-container result --repository jeff/healthchecks-sendalerts
|
|
||||||
- nix build -L .#sendreports
|
|
||||||
- push-container result --repository jeff/healthchecks-sendreports
|
|
||||||
- nix build -L .#maintenance
|
|
||||||
- push-container result --repository jeff/healthchecks-maintenance
|
|
||||||
- nix build -L .#migrate
|
|
||||||
- push-container result --repository jeff/healthchecks-migrate
|
|
||||||
- nix build -L .#static
|
|
||||||
- push-container result --repository jeff/healthchecks-static
|
|
||||||
settings:
|
|
||||||
registry:
|
|
||||||
from_secret: registry
|
|
||||||
username:
|
|
||||||
from_secret: username
|
|
||||||
password:
|
|
||||||
from_secret: password
|
|
34
.forgejo/workflows/build.yaml
Normal file
34
.forgejo/workflows/build.yaml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
name: build nixos-runner
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: nixos
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- run: nix build -L .#webserver
|
||||||
|
- run: mv result result-webserver
|
||||||
|
- run: nix build -L .#migrate
|
||||||
|
- run: mv result result-migrate
|
||||||
|
- run: nix build -L .#maintenance
|
||||||
|
- run: mv result result-maintenance
|
||||||
|
- run: nix build -L .#smtpd
|
||||||
|
- run: mv result result-smtpd
|
||||||
|
- run: nix build -L .#sendalerts
|
||||||
|
- run: mv result result-sendalerts
|
||||||
|
- run: nix build -L .#sendreports
|
||||||
|
- run: mv result result-sendreports
|
||||||
|
- run: nix build -L .#static
|
||||||
|
- run: mv result result-static
|
||||||
|
- run: |-
|
||||||
|
push-container result-webserver --repository ${{ secrets.FORGEJO_USERNAME }}/healthchecks-webserver
|
||||||
|
push-container result-migrate --repository ${{ secrets.FORGEJO_USERNAME }}/healthchecks-migrate
|
||||||
|
push-container result-maintenance --repository ${{ secrets.FORGEJO_USERNAME }}/helthchecks-maintenance
|
||||||
|
push-container result-smtpd --repository ${{ secrets.FORGEJO_USERNAME }}/healthchecks-smtpd
|
||||||
|
push-container result-sendalerts --repository ${{ secrets.FORGEJO_USERNAME }}/healthchecks-sendalerts
|
||||||
|
push-container result-sendreports --repository ${{ secrets.FORGEJO_USERNAME }}/healthchecks-sendreports
|
||||||
|
push-container result-static --repository ${{ secrets.FORGEJO_USERNAME }}/healthchecks-static
|
||||||
|
env:
|
||||||
|
REGISTRY: ${{ secrets.FORGEJO_REGISTRY }}
|
||||||
|
USERNAME: ${{ secrets.FORGEJO_USERNAME }}
|
||||||
|
PASSWORD: ${{ secrets.FORGEJO_PASSWORD }}
|
Loading…
Reference in a new issue