-
Notifications
You must be signed in to change notification settings - Fork 5
56 lines (49 loc) · 1.23 KB
/
pipeline.yaml
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
name: test -> build -> release
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build-and-release:
permissions:
contents: write
packages: write
attestations: write
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-tags: true
fetch-depth: 0
- name: Setup Go environment
uses: actions/[email protected]
with:
go-version-file: go.mod
cache-dependency-path: go.sum
cache: true
- name: Run tests
shell: bash
run: |
go install github.com/go-task/task/v3/cmd/task@latest
go install sigs.k8s.io/kind@latest
task test
- name: Build and Release Flights
if: github.ref == 'refs/heads/main'
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}
GITHUB_ACTOR: davidmdm
run: |
go run ./cmd/internal/releaser \
-latest \
-cli \
-wasm yokecd-installer \
-wasm atc-installer \
-docker atc \
-docker yokecd