Skip to content

Commit 0fa1793

Browse files
committed
chore: init
0 parents  commit 0fa1793

5 files changed

Lines changed: 85 additions & 0 deletions

File tree

.github/workflows/pull-request.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Pull Request
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
permissions:
12+
contents: read
13+
packages: write
14+
15+
jobs:
16+
pull-request:
17+
uses: getdevopspro/github-actions/.github/workflows/pull-request.yml@v0.2.22
18+
secrets:
19+
registry-password: ${{ secrets.GITHUB_TOKEN }}
20+
with:
21+
version-justfile: justfile
22+
just-install: true
23+
registry-username: ${{ github.actor }}
24+
test-command: just unit-test system-test

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
tags:
9+
- "v*"
10+
paths-ignore:
11+
- "**.md"
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
permissions:
18+
contents: write
19+
packages: write
20+
21+
jobs:
22+
release:
23+
uses: getdevopspro/github-actions/.github/workflows/release.yml@v0.2.22
24+
secrets:
25+
registry-password: ${{ secrets.GITHUB_TOKEN }}
26+
with:
27+
version-justfile: justfile
28+
just-install: true
29+
git-add-files: justfile
30+
git-user-name: cleanlogix-cibot
31+
git-user-email: 193524276+cleanlogix-cibot@users.noreply.github.com
32+
registry-username: ${{ github.actor }}
33+
test-command: just unit-test system-test

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM busybox
2+
3+
RUN touch $(date +%Y-%m-%d-%H:%M:%S).txt

docker-bake.hcl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// docker-bake.hcl
2+
target "docker-metadata-action" {}
3+
4+
target "build" {
5+
inherits = ["docker-metadata-action"]
6+
context = "./"
7+
dockerfile = "Dockerfile"
8+
platforms = [
9+
"linux/amd64",
10+
"linux/arm64",
11+
]
12+
}

justfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# A beautiful Just collection to make lives easier!
2+
3+
version := "0.0.0"
4+
5+
# Unit tests
6+
[group('test')]
7+
unit-test package="all" testfile="all":
8+
@echo "Listing unit tests for package: {{ package }} with testfile: {{ testfile }}"
9+
10+
# System tests
11+
[group('test')]
12+
system-test package="*" test-pattern="":
13+
@echo "Running system tests for package: {{ package }} with test pattern: {{ test-pattern }}"

0 commit comments

Comments
 (0)