Skip to content

Commit 080ba67

Browse files
committed
chore: migrate to justfile
1 parent d1f7db2 commit 080ba67

File tree

3 files changed

+22
-15
lines changed

3 files changed

+22
-15
lines changed

.github/workflows/docker-publish-images.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
working-directory: ./harbor
3030

3131
steps:
32+
- uses: extractions/setup-just@v3
3233
- uses: actions/checkout@v4
3334
with:
3435
submodules: true
@@ -44,7 +45,7 @@ jobs:
4445
username: ${{ github.actor }}
4546
password: ${{ secrets.GITHUB_TOKEN }}
4647

47-
- run: cd .. && make patch
48+
- run: cd .. && just patch
4849

4950
- id: prepare
5051
run: echo "tag=$(cat ../version)" >> $GITHUB_ENV
@@ -89,21 +90,22 @@ jobs:
8990
working-directory: ./harbor
9091

9192
steps:
93+
- uses: extractions/setup-just@v3
9294
- uses: actions/checkout@v4
9395
with:
9496
submodules: true
9597

9698
- uses: actions/setup-go@v3
9799
with:
98-
go-version: '^1.20.x'
100+
go-version: '^1.x'
99101

100102
- uses: docker/setup-qemu-action@v3
101103
- uses: docker/setup-buildx-action@v3
102104
with:
103105
driver: docker-container
104106
driver-opts: network=host
105107

106-
- run: cd .. && make patch
108+
- run: cd .. && just patch
107109

108110
- uses: docker/setup-buildx-action@v3
109111
with:

Makefile

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

justfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
export VERSION := `cat version`
2+
3+
all: dep patch
4+
5+
dep:
6+
git submodule update --init --recursive
7+
git submodule update --force --remote
8+
git submodule foreach -q --recursive 'git reset --hard && git checkout ${VERSION}'
9+
10+
[working-directory('harbor')]
11+
patch:
12+
curl "https://github.com/goharbor/harbor/compare/{{ VERSION }}...morlay:patch-{{ VERSION }}.patch" | git apply -v
13+
14+
[working-directory('harbor')]
15+
reset:
16+
git add .
17+
git reset --hard

0 commit comments

Comments
 (0)