diff --git a/.github/workflows/test-flake-ci.yaml b/.github/workflows/test-flake-ci.yaml new file mode 100644 index 00000000..f0063380 --- /dev/null +++ b/.github/workflows/test-flake-ci.yaml @@ -0,0 +1,20 @@ +name: "Flake CI Test" + +on: + workflow_dispatch: + +jobs: + update: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install Nix + uses: cachix/install-nix-action@v30 + with: + nix_path: nixpkgs=channel:nixos-unstable + + - uses: DeterminateSystems/magic-nix-cache-action@main + + - uses: nix develop --command task kubernetes:test123 \ No newline at end of file diff --git a/.taskfiles/kubernetes/Taskfile.yaml b/.taskfiles/kubernetes/Taskfile.yaml new file mode 100644 index 00000000..b4b4eb8e --- /dev/null +++ b/.taskfiles/kubernetes/Taskfile.yaml @@ -0,0 +1,20 @@ +--- +version: '3' + +tasks: + test123: + desc: plz work + cmds: + - echo HELLO WORLD + + test456: + desc: test var + vars: + GIT_COMMIT: + sh: > + regctl tag ls quay.io/kairos/opensuse \ + --include 'leap-\d+.\d+-standard-amd64-generic.*' \ + --exclude '.*(master|alpha|beta|rc).*' \ + | tail -1 + cmd: > + echo {{.GIT_COMMIT}} \ No newline at end of file diff --git a/Taskfile.yaml b/Taskfile.yaml index a686b630..af6b3033 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -5,7 +5,19 @@ vars: PROJECT_DIR: sh: "git rev-parse --show-toplevel" +includes: + # bootstrap: .taskfiles/bootstrap + kubernetes: .taskfiles/kubernetes + # talos: .taskfiles/talos + # volsync: .taskfiles/volsync + # workstation: .taskfiles/workstation + tasks: + + default: + cmd: task --list + silent: true + install: desc: Install Flux into cluster cmds: diff --git a/flake.nix b/flake.nix index 6185fe0c..810fcdec 100644 --- a/flake.nix +++ b/flake.nix @@ -21,6 +21,7 @@ jq yq watch + regctl ]; }; });