-
Notifications
You must be signed in to change notification settings - Fork 1
80 lines (69 loc) · 1.73 KB
/
cicd.yml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: 🚀 CI/CD
on:
push:
jobs:
test-ubuntu-latest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install packages
uses: ./
with:
packages: |
helm=3.7.2*
kustomize=4.4.1*
kubectl=1.22.4*
test-container-debian-bullseye:
runs-on: ubuntu-latest
container:
image: debian:bullseye
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install packages
uses: ./
with:
packages: |
bat
test-container-wakemeops-bullseye:
runs-on: ubuntu-latest
container:
image: wakemeops/debian:bullseye
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install packages
uses: ./
with:
packages: |
bat
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs:
[
test-ubuntu-latest,
test-container-debian-bullseye,
test-container-wakemeops-bullseye,
]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install clog-cli
uses: upciti/wakemeops-action@v1
with:
packages: clog-cli
- name: Build Release Changelog
run: |
clog --setversion $(git tag --sort=creatordate | tail -n1) \
--from $(git tag --sort=creatordate | tail -n2 | head -n1) \
-o changelog.md \
-r https://github.com/upciti/ops2deb
- name: Create Release
uses: softprops/action-gh-release@v1
with:
body_path: changelog.md
token: ${{ secrets.PAT }}