Skip to content

Commit

Permalink
feat: flake with nix os qcow generation
Browse files Browse the repository at this point in the history
chore: dev shell
  • Loading branch information
loic-roux-404 committed May 18, 2024
1 parent a665502 commit 75c7b0a
Show file tree
Hide file tree
Showing 141 changed files with 4,033 additions and 6,452 deletions.
7 changes: 5 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
insert_final_newline = true

[*.{yml,yaml,yml.*,yaml.*}]
[*.{yml,yaml,yml.*,yaml.*,xslt.*,*.xslt}]
indent_size = 2

[*.{hcl,tf,tfvars,tfvars.*}]
Expand All @@ -20,5 +20,8 @@ indent_size = 2
[*.sh]
end_of_line = lf

[*.nix]
indent_size = 2

[Makefile]
indent_style = tab
6 changes: 6 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env sh

use flake .
watch_file flake.nix

# vim: ft=sh
38 changes: 0 additions & 38 deletions .github/workflows/release-helm.yml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/release-nixos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Release Packer image
on:
push:
branches:
- main
paths:
- 'playbook/**.yml'
- '!**.md'
- '!playbook/roles/paas/molecule/**'
- 'packer/**'
- .github/workflows/release-packer.yml

permissions:
contents: write
discussions: write

jobs:
gh-release-packer:
runs-on: ubuntu-latest
name: Run Packer
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: cachix/install-nix-action@v25
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Build
id: build
run: nix build .#nixosConfigurations.aarch64-darwin.default

- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: nixos-k3s-paas-${{ steps.vars.outputs.sha_short }}
token: "${{ secrets.GITHUB_TOKEN }}"
generate_release_notes: true
files: |
result/
69 changes: 0 additions & 69 deletions .github/workflows/release-packer.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/test-helm.yml

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/test-packer.yml

This file was deleted.

81 changes: 0 additions & 81 deletions .github/workflows/test-playbook.yml

This file was deleted.

Loading

0 comments on commit 75c7b0a

Please sign in to comment.