Skip to content

Commit

Permalink
test flake as ci
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyEnr1quez committed Nov 4, 2024
1 parent fd42b04 commit 6d3a26a
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/test-flake-ci.yaml
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions .taskfiles/kubernetes/Taskfile.yaml
Original file line number Diff line number Diff line change
@@ -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}}
12 changes: 12 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
jq
yq
watch
regctl
];
};
});
Expand Down

0 comments on commit 6d3a26a

Please sign in to comment.