-
Notifications
You must be signed in to change notification settings - Fork 10
94 lines (79 loc) · 3.96 KB
/
release.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Release
on:
push:
branches:
- main
jobs:
release:
permissions: write-all
runs-on: ubuntu-20.04
strategy:
matrix:
package_dir:
- mount-helper
- mount-helper-container
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Strongswan For Testing IPSec Service In Unit Tests
if: ${{ matrix.package_dir == 'mount-helper' }}
run: sudo apt install charon-systemd
- name: Run Unit Tests for mount helper
if: ${{ matrix.package_dir == 'mount-helper' }}
run: sudo make test -C ${{ matrix.package_dir }}
- name: Run Unit Tests for mount helper container
if: ${{ matrix.package_dir == 'mount-helper-container' }}
run: sudo make ut-coverage -C ${{ matrix.package_dir }}
- name: Build Debian/rpm Packages For Development Environment
if: ${{ matrix.package_dir == 'mount-helper' }}
run: make dev -C ${{ matrix.package_dir }}
- name: Build Debian/rpm Packages For mount-helper-container
if: ${{ matrix.package_dir == 'mount-helper-container' }}
run: |
cd ${{ matrix.package_dir }}
make packages
- name: Development Environment Latest Version
if: ${{ matrix.package_dir == 'mount-helper' }}
id: dev-release
uses: softprops/action-gh-release@v1
with:
files: /home/runner/work/vpc-file-storage-mount-helper/vpc-file-storage-mount-helper/${{ matrix.package_dir }}/mount.ibmshare-latest.tar.gz,/home/runner/work/vpc-file-storage-mount-helper/vpc-file-storage-mount-helper/${{ matrix.package_dir }}/mount.ibmshare-latest.tar.gz.sha256
tag_name: dev-pre-ga
name: Development Version
body: Mount Helper For Development Teams-GA
- name: Build Debian/rpm Packages For Production Environment
if: ${{ matrix.package_dir == 'mount-helper' }}
run: |
make prod -C ${{ matrix.package_dir }}
cd mount-helper-container
make packages
- name: Latest Tag Release
id: latest-tag
uses: softprops/action-gh-release@v1
with:
files: |
/home/runner/work/vpc-file-storage-mount-helper/vpc-file-storage-mount-helper/${{ matrix.package_dir }}/mount.ibmshare-latest.tar.gz
/home/runner/work/vpc-file-storage-mount-helper/vpc-file-storage-mount-helper/${{ matrix.package_dir }}/mount.ibmshare-latest.tar.gz.sha256
/home/runner/work/vpc-file-storage-mount-helper/vpc-file-storage-mount-helper/mount-helper-container/mount-helper-container-latest.tar.gz
/home/runner/work/vpc-file-storage-mount-helper/vpc-file-storage-mount-helper/mount-helper-container/mount-helper-container-latest.tar.gz.sha256
tag_name: latest
name: Latest
body: The latest release tag provides static link for package download. This has the same artificats as in the versioned latest version.
- name: Latest Version
if: ${{ matrix.package_dir == 'mount-helper' }}
id: release
uses: softprops/action-gh-release@v1
with:
files: |
/home/runner/work/vpc-file-storage-mount-helper/vpc-file-storage-mount-helper/${{ matrix.package_dir }}/mount.ibmshare-latest.tar.gz
/home/runner/work/vpc-file-storage-mount-helper/vpc-file-storage-mount-helper/${{ matrix.package_dir }}/mount.ibmshare-latest.tar.gz.sha256
/home/runner/work/vpc-file-storage-mount-helper/vpc-file-storage-mount-helper/mount-helper-container/mount-helper-container-latest.tar.gz
/home/runner/work/vpc-file-storage-mount-helper/vpc-file-storage-mount-helper/mount-helper-container/mount-helper-container-latest.tar.gz.sha256
tag_name: 0.0.9
name: 0.0.9
body: CSR generated with SHA1 is not supported to get certs using Metadata.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
- name: Perform CodeQL Analysis Mount Helper Code
if: ${{ matrix.package_dir == 'mount-helper' }}
uses: github/codeql-action/analyze@v2