-
Notifications
You must be signed in to change notification settings - Fork 2
/
justfile
55 lines (43 loc) · 1.44 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
set shell := ["bash", "-uc"]
# Show available targets/recipes
default:
@just --choose
# Clean up old files
clean:
rm -rf ./dist/*
rm ./rolecule
# Build the binary for the current os/arch
build:
go build -o bin/rolecule
# Configure your host to use this repo
setup:
mise trust
mise install
mise ls -c
# Show git tags
tags:
@git tag | sort -V
# Run unit tests
test:
go test ./... -v -coverprofile=/dev/null
# Build docker images with ansible support
build-docker-ansible-images:
docker build -t rockylinux-systemd:9.1 -f testing/ansible/rockylinux-9.1-systemd.Dockerfile .
docker build -t ubuntu-systemd:22.04 -f testing/ansible/ubuntu-22.04-systemd.Dockerfile .
docker build -t ubuntu-systemd:24.04 -f testing/ansible/ubuntu-24.04-systemd.Dockerfile .
# Build podman images with ansible support
build-podman-ansible-images:
podman build -t rockylinux-systemd:9.1 -f testing/ansible/rockylinux-9.1-systemd.Dockerfile .
podman build -t ubuntu-systemd:22.04 -f testing/ansible/ubuntu-22.04-systemd.Dockerfile .
podman build -t ubuntu-systemd:24.04 -f testing/ansible/ubuntu-24.04-systemd.Dockerfile .
# Build all images with ansible support
build-ansible-images: build-docker-ansible-images build-podman-ansible-images
# Build a local only, snapshot release
snapshot:
goreleaser --snapshot --skip-publish --rm-dist --debug
# Create and publish a new release
release:
goreleaser --rm-dist
# Show help menu
help:
@just --list --list-prefix ' ❯ '