Skip to content

Commit 65eb7a6

Browse files
committed
Trying out justfiles
1 parent d295ee4 commit 65eb7a6

7 files changed

Lines changed: 45 additions & 95 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ jobs:
1717
- falco-libs
1818
steps:
1919
- uses: actions/checkout@v3
20+
- uses: taiki-e/install-action@just
21+
2022

2123
- name: Build
2224
run: |
23-
make -C ${{ matrix.image }} build
25+
just ${{ matrix.image }}/build
2426
2527
- name: Login to Quay.io
2628
if: github.event_name != 'pull_request'
@@ -33,4 +35,4 @@ jobs:
3335
- name: Build and push
3436
if: github.event_name != 'pull_request'
3537
run: |
36-
make -C ${{ matrix.image }} push
38+
just ${{ matrix.image }}/push

Makefile

Lines changed: 0 additions & 18 deletions
This file was deleted.

collector/Makefile

Lines changed: 0 additions & 33 deletions
This file was deleted.

collector/justfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
builder-image := "quay.io/mmoltras/devcontainers:collector"
2+
3+
build:
4+
docker build \
5+
--tag {{builder-image}} \
6+
-f Containerfile \
7+
`pwd`
8+
9+
push:
10+
docker push {{builder-image}}

falco-libs/Makefile

Lines changed: 0 additions & 42 deletions
This file was deleted.

falco-libs/justfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
image := "quay.io/mmoltras/devcontainers:falco-libs"
2+
template := `pwd` / 'clangd.tpl.yaml'
3+
clangd := `pwd` / 'clangd.yaml'
4+
5+
build: clang-config
6+
docker build \
7+
--tag {{image}} \
8+
-f Containerfile \
9+
`pwd`
10+
11+
clang-config: clean
12+
@envsubst < {{template}} > {{clangd}}
13+
14+
clean:
15+
@rm -f {{clangd}}
16+
17+
push:
18+
docker push {{image}}

justfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
all: collector falco clean deploy
2+
3+
collector:
4+
just collector/
5+
6+
falco:
7+
just falco-libs/
8+
9+
clean:
10+
kluars xlate `pwd`/lua | podman play kube --down -
11+
12+
deploy:
13+
kluars xlate `pwd`/lua | podman play kube -

0 commit comments

Comments
 (0)