forked from goharbor/harbor-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (53 loc) · 1.83 KB
/
Copy pathpages.yaml
File metadata and controls
59 lines (53 loc) · 1.83 KB
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
56
57
58
59
name: Pages Rebuild
on:
workflow_dispatch:
jobs:
build-pages:
permissions:
contents: write
packages: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout repo
if: |
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) ||
(github.event_name == 'workflow_dispatch')
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref }}
- name: Create Build Dir
if: |
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) ||
(github.event_name == 'workflow_dispatch')
run: mkdir -p dist
- name: Building Binaries
if: |
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) ||
(github.event_name == 'workflow_dispatch')
uses: dagger/dagger-for-github@v7
with:
version: "latest"
verb: call
args: "build --build-dir=./dist export --path=./dist"
- name: NFPM Build (deb/rpm)
if: |
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) ||
(github.event_name == 'workflow_dispatch')
uses: dagger/dagger-for-github@v7
with:
version: "latest"
verb: call
args: "nfpm-build --build-dir=./dist export --path=./dist"
- name: Apt Build
if: |
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) ||
(github.event_name == 'workflow_dispatch')
uses: dagger/dagger-for-github@v7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version: "latest"
verb: call
args: "apt-build --build-dir=./dist --token=env://GITHUB_TOKEN "