-
-
Notifications
You must be signed in to change notification settings - Fork 134
113 lines (109 loc) · 3.62 KB
/
lwpm-dist-file.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: LWPM Dist File
on:
push:
branches:
- "23.11"
workflow_dispatch:
jobs:
lwpm-dist-file:
name: lwpm-dist-file
runs-on: ${{ matrix.os }}-latest
if: |
contains( github.event.head_commit.message, '[lwpm dist]')
|| github.event_name == 'workflow_dispatch'
env:
LWPM_DOCKER_USERNAME: khs1994
LWPM_DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
LWPM_DOCKER_REGISTRY: registry-1.docker.io
strategy:
matrix:
os: ["windows","ubuntu"]
fail-fast: true
steps:
- uses: actions/checkout@v3
with:
repository: khs1994-docker/lnmp
fetch-depth: 1
# ref: "23.11"
path: lnmp
- name: handle-conmon
shell: pwsh
if: matrix.os == 'ubuntu' &&
contains( github.event.head_commit.message, '[k8s]')
env:
VERSION: 2.1.3
run: |
./lnmp/windows/lnmp-windows-pm.ps1 dist conmon@${env:VERSION}
./lnmp/windows/lnmp-windows-pm.ps1 push conmon@${env:VERSION}
- name: handle-containerd
shell: pwsh
if: matrix.os == 'ubuntu' &&
contains( github.event.head_commit.message, '[k8s]')
env:
VERSION: 1.7.0
run: |
./lnmp/windows/lnmp-windows-pm.ps1 dist containerd@${env:VERSION}
./lnmp/windows/lnmp-windows-pm.ps1 push containerd@${env:VERSION}
- name: handle-crictl
shell: pwsh
if: matrix.os == 'windows' &&
contains( github.event.head_commit.message, '[k8s]')
env:
VERSION: 1.27.0
run: |
./lnmp/windows/lnmp-windows-pm.ps1 dist crictl@${env:VERSION}
./lnmp/windows/lnmp-windows-pm.ps1 push crictl@${env:VERSION}
- name: handle-etcd
if: endsWith('a', 'b')
shell: pwsh
env:
VERSION: 3.5.8
run: |
./lnmp/windows/lnmp-windows-pm.ps1 dist etcd@${env:VERSION}
./lnmp/windows/lnmp-windows-pm.ps1 push etcd@${env:VERSION}
- name: handle-helm
if: endsWith('a', 'b')
shell: pwsh
env:
VERSION: 3.7.0
run: |
./lnmp/windows/lnmp-windows-pm.ps1 dist helm@${env:VERSION}
./lnmp/windows/lnmp-windows-pm.ps1 push helm@${env:VERSION}
- name: handle-runc
shell: pwsh
if: matrix.os == 'windows' &&
contains( github.event.head_commit.message, '[k8s]')
env:
VERSION: 1.1.0
run: |
./lnmp/windows/lnmp-windows-pm.ps1 dist runc@${env:VERSION}
./lnmp/windows/lnmp-windows-pm.ps1 push runc@${env:VERSION}
- name: handle-runsc
shell: pwsh
if: matrix.os == 'ubuntu' &&
contains( github.event.head_commit.message, '[k8s]')
env:
VERSION: nightly
run: |
./lnmp/windows/lnmp-windows-pm.ps1 dist runsc@${env:VERSION}
./lnmp/windows/lnmp-windows-pm.ps1 push runsc@${env:VERSION}
- name: handle-compose
shell: pwsh
if: |
matrix.os == 'ubuntu' &&
contains( github.event.head_commit.message, '[compose]')
env:
VERSION: 1.25.5
run: |
./lnmp/windows/lnmp-windows-pm.ps1 dist compose@${env:VERSION}
./lnmp/windows/lnmp-windows-pm.ps1 push compose@${env:VERSION}
- name: handle-jx
shell: pwsh
if: |
matrix.os == 'ubuntu' &&
contains( github.event.head_commit.message, '[jx]')
env:
VERSION: 2.1.33
run: |
./lnmp/windows/lnmp-windows-pm.ps1 dist jx@${env:VERSION}
./lnmp/windows/lnmp-windows-pm.ps1 push jx@${env:VERSION}