feat: got the pipelines configured now
All checks were successful
Build_Deploy / linter (push) Successful in 6s
Build_Deploy / build (push) Successful in 3m14s
Build_Deploy / deploy_dns (push) Successful in 45s
Build_Deploy / deploy_active (active) (push) Successful in 48s
Build_Deploy / deploy_active (active-core) (push) Successful in 1m13s
Build_Deploy / deploy_active (active-ext) (push) Successful in 30s
All checks were successful
Build_Deploy / linter (push) Successful in 6s
Build_Deploy / build (push) Successful in 3m14s
Build_Deploy / deploy_dns (push) Successful in 45s
Build_Deploy / deploy_active (active) (push) Successful in 48s
Build_Deploy / deploy_active (active-core) (push) Successful in 1m13s
Build_Deploy / deploy_active (active-ext) (push) Successful in 30s
Update .mailmap See if making it .mailmap fixes it Signed-off-by: silver <silver@skynet.ie> Add .forgejo/workflows/testing.yaml Update .forgejo/workflows/testing.yaml Update .forgejo/workflows/testing.yaml Update .forgejo/workflows/testing.yaml Update .forgejo/workflows/testing.yaml Update .forgejo/workflows/testing.yaml Update .forgejo/workflows/testing.yaml feat: initial test of flake update Signed-off-by: silver <silver@skynet.ie> test: seeing if I can push changes testing fix: set the url of the external plugin correctly Signed-off-by: silver <silver@skynet.ie> fix: go back to using nix fix: update command Signed-off-by: silver <silver@skynet.ie> Apply automatic changes revert26c7781fad
revert Apply automatic changes test: add teh cache and colmena build Signed-off-by: silver <silver@skynet.ie> test: see if this helps Signed-off-by: silver <silver@skynet.ie> test: see if using another plugin will work Signed-off-by: silver <silver@skynet.ie> test: the cache key test: more testing Update .forgejo/workflows/update_input.yaml Update .forgejo/workflows/update_input.yaml test: s[pplit up teh build and cache propegation attic push --ignore-upstream-cache-filter mycache $(ls -d /nix/store/*/ | grep -v fake_nixpkgs) Signed-off-by: silver <silver@skynet.ie> Update .forgejo/workflows/update_input.yaml Update .forgejo/workflows/update_input.yaml Update .forgejo/workflows/update_input.yaml Signed-off-by: silver <silver@skynet.ie> Update .forgejo/workflows/update_input.yaml Signed-off-by: silver <silver@skynet.ie> Update .forgejo/workflows/update_input.yaml Signed-off-by: silver <silver@skynet.ie> Update .forgejo/workflows/update_input.yaml Update .forgejo/workflows/update_input.yaml Update .forgejo/workflows/update_input.yaml revert35887a8fba
revert Update .forgejo/workflows/update_input.yaml Update .forgejo/workflows/update_input.yaml Signed-off-by: silver <silver@skynet.ie> fix: no need to upload in pipeline now, Signed-off-by: silver <silver@skynet.ie> ci: initial commit of the deploy pipeline Signed-off-by: silver <silver@skynet.ie> Update .forgejo/workflows/deploy.yaml Signed-off-by: silver <silver@skynet.ie> Update .forgejo/workflows/deploy.yaml Signed-off-by: silver <silver@skynet.ie> Update .forgejo/workflows/update_input.yaml Signed-off-by: silver <silver@skynet.ie> Updated flake for agenix test: force pipeline Signed-off-by: silver <silver@skynet.ie> Update .forgejo/workflows/update_input.yaml ci: testing if I can get this working right Signed-off-by: silver <silver@skynet.ie> Updated flake for arion revertb6cd168c38
revert Updated flake for arion ci: more changes to see if this will help Signed-off-by: silver <silver@skynet.ie> Updated flake for arion revertda380ed0f4
revert Updated flake for arion Update .forgejo/workflows/deploy.yaml Signed-off-by: silver <silver@skynet.ie> Updated flake for arion revertf0ee4a9e69
revert Updated flake for arion fix: reformatted flake ci: testing out deploy ci: testing out deploy, new ssh manager ci: more testing ci: see if going back to basics helps ci: test a few things ci: test a few things ci: for testing ci: more testing ci: some bastardisation for thbe ssh ci: more testing ci: check if setting root as teh user helps ci: check if setting root as teh user helps2 ci: check if setting root as teh user helps2 ci: check if setting root as teh user helps2 ci: more testing ci: more testing ci: more testing ci: more testing2 ci: more testing2 ci: more testing2 ci: more testing2 ci: more testing2 ci: more testing2 ci: clean up testing ci: final tests ci:: final, fixing ci: need logging ci: more testing ci: gahhhhhhhhhh ci: AAAAAAAAAAAAAAAAAA ci: lets go back ci: lets go backaaaaaaaa ci: lets go backaaaaaaaaqweadadsasdasdasdasd ci: lets go backaaaaaaaaqweadadsasdasdasdasd ci: add the final deploy config Add .forgejo/workflows/testing.yaml (cherry picked from commitf2cf71ef98
) Update .forgejo/workflows/testing.yaml (cherry picked from commite156b61105
) Update .forgejo/workflows/testing.yaml (cherry picked from commit80e1fcc545
) Update .forgejo/workflows/testing.yaml (cherry picked from commit423f2dd5b3
) Update .forgejo/workflows/testing.yaml (cherry picked from commitf446ba5443
) Update .forgejo/workflows/testing.yaml (cherry picked from commit44a7186a40
) Update .forgejo/workflows/testing.yaml (cherry picked from commited0be4507a
)
This commit is contained in:
parent
f00ae5bd2d
commit
1fb4318310
3 changed files with 82 additions and 0 deletions
53
.forgejo/workflows/deploy.yaml
Normal file
53
.forgejo/workflows/deploy.yaml
Normal file
|
@ -0,0 +1,53 @@
|
|||
name: Build_Deploy
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: [ "Update_Flake" ]
|
||||
types:
|
||||
- completed
|
||||
push:
|
||||
paths:
|
||||
- applications/**/*
|
||||
- machines/**/*
|
||||
- secrets/**/*
|
||||
- flake.*
|
||||
- config/**/*
|
||||
- .forgejo/**/*
|
||||
|
||||
jobs:
|
||||
linter:
|
||||
runs-on: nix
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: nix fmt -- --check .
|
||||
|
||||
#if: github.repository == 'Skynet/nixos'
|
||||
build:
|
||||
runs-on: nix
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: nix develop
|
||||
- run: colmena build -v --on @active-dns
|
||||
- run: colmena build -v --on @active-core
|
||||
- run: colmena build -v --on @active
|
||||
- run: colmena build -v --on @active-ext
|
||||
- run: colmena build -v --on @active-gitlab
|
||||
|
||||
deploy_dns:
|
||||
runs-on: nix
|
||||
needs: [ linter, build ]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: colmena apply -v --on @active-dns --show-trace
|
||||
shell: bash
|
||||
|
||||
deploy_active:
|
||||
strategy:
|
||||
matrix:
|
||||
batch: [ active-core, active, active-ext ]
|
||||
runs-on: nix
|
||||
needs: [ deploy_dns ]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: colmena apply -v --on @${{ matrix.batch }} --show-trace
|
||||
shell: bash
|
29
.forgejo/workflows/update_input.yaml
Normal file
29
.forgejo/workflows/update_input.yaml
Normal file
|
@ -0,0 +1,29 @@
|
|||
name: Update_Flake
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
input_to_update:
|
||||
description: 'Flake input to update'
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
update:
|
||||
runs-on: nix
|
||||
|
||||
permissions:
|
||||
# Give the default GITHUB_TOKEN write permission to commit and push the
|
||||
# added or changed files to the repository.
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.head_ref }}
|
||||
token: ${{ secrets.PIPELINE_TOKEN }}
|
||||
- run: nix flake lock --update-input "${{ inputs.input_to_update }}"
|
||||
shell: bash
|
||||
- uses: https://github.com/stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: "Updated flake for ${{ inputs.input_to_update }}"
|
Loading…
Reference in a new issue