Skip to content

Commit 323bcac

Browse files
committed
build: add justfile & helm chart release workflow (standardised)
1 parent 25d7563 commit 323bcac

4 files changed

Lines changed: 42 additions & 71 deletions

File tree

.github/workflows/release-chart.yml

Lines changed: 0 additions & 71 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 🚀 Release Chart
2+
3+
on:
4+
# Push includes PR merge
5+
push:
6+
branches:
7+
- dev
8+
paths:
9+
# Workflow is triggered only if chart dir changes
10+
- chart/**
11+
# Allow manual trigger
12+
workflow_dispatch:
13+
14+
permissions:
15+
contents: read
16+
packages: write
17+
18+
jobs:
19+
publish:
20+
uses: hotosm/gh-workflows/.github/workflows/just.yml@3.6.0
21+
with:
22+
environment: "test"
23+
command: "chart publish"
24+
secrets: inherit

Justfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
set dotenv-load
2+
3+
# List available commands
4+
[private]
5+
default:
6+
just help
7+
8+
# List available commands
9+
help:
10+
just --justfile {{justfile()}} --list
11+
12+
# Chart module from https://github.com/hotosm/justfiles
13+
chart *args:
14+
@curl -sS https://raw.githubusercontent.com/hotosm/justfiles/main/chart.just \
15+
-o {{justfile_directory()}}/tasks/chart.just;
16+
@just --justfile {{justfile_directory()}}/tasks/chart.just --set chart_name "login" {{args}}

tasks/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Justfiles imported from https://github.com/hotosm/justfiles
2+
*.just

0 commit comments

Comments
 (0)