File tree 3 files changed +21
-12
lines changed
3 files changed +21
-12
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Release
3
3
on :
4
4
push :
5
5
branches :
6
- - ashima-server
6
+ - fix-deb
7
7
8
8
jobs :
9
9
release :
16
16
- cos-csi-mounter
17
17
18
18
env :
19
- IS_LATEST_RELEASE : ' true'
19
+ IS_LATEST_RELEASE : ' false'
20
+ APP_VERSION : 0.0.1
20
21
21
22
steps :
22
23
- name : Checkout Code
@@ -55,11 +56,11 @@ jobs:
55
56
uses : softprops/action-gh-release@v1
56
57
with :
57
58
files : |
58
- /home/runner/work/ibm-object-csi-driver/ibm-object-csi-driver/cos-csi-mounter/cos-csi-mounter-latest .tar.gz
59
- /home/runner/work/ibm-object-csi-driver/ibm-object-csi-driver/cos-csi-mounter/cos-csi-mounter-latest .tar.gz.sha256
60
- tag_name : v0.1.0-dev02
61
- name : v0.1.0-dev02
62
- body : CSR generated with SHA1 is not supported to get certs using Metadata.
59
+ /home/runner/work/ibm-object-csi-driver/ibm-object-csi-driver/cos-csi-mounter/cos-csi-mounter-${{ env.APP_VERSION }} .tar.gz
60
+ /home/runner/work/ibm-object-csi-driver/ibm-object-csi-driver/cos-csi-mounter/cos-csi-mounter-${{ env.APP_VERSION }} .tar.gz.sha256
61
+ tag_name : v0.0.1-ansible1
62
+ name : v0.0.1-ansible1
63
+ body : Generate debian package with security fixes
63
64
prerelease : ${{ env.IS_LATEST_RELEASE != 'true' }}
64
65
65
66
- name : Perform CodeQL Analysis
Original file line number Diff line number Diff line change 1
1
NAME := cos-csi-mounter
2
- APP_VERSION := 0.0.0
2
+ APP_VERSION := 0.0.1
3
3
BUILD_DIR := $(NAME ) -$(APP_VERSION )
4
4
BIN_DIR := bin
5
5
@@ -8,7 +8,7 @@ MAINTAINER := "IKS Storage"
8
8
DEB_ARCH := all
9
9
DESCRIPTION := "IBM cos-csi-mounter service"
10
10
11
- INSTALL_TAR_FILE := "$(NAME ) -latest .tar.gz"
11
+ INSTALL_TAR_FILE := "$(NAME ) -$( APP_VERSION ) .tar.gz"
12
12
CHECKSUM_FILE := "$(INSTALL_TAR_FILE ) .sha256"
13
13
14
14
test :
@@ -50,8 +50,8 @@ tar-package:
50
50
tar-package :
51
51
mkdir packages
52
52
cp ${NAME} -* packages/
53
- cd packages && tar -czvf ../ $(INSTALL_TAR_FILE ) *
54
- sha256sum ./ $(INSTALL_TAR_FILE ) > $(CHECKSUM_FILE )
53
+ cd packages && tar -czvf $(INSTALL_TAR_FILE ) *
54
+ sha256sum $(INSTALL_TAR_FILE ) > $(CHECKSUM_FILE )
55
55
@printf " Production - Install package created ok: $( INSTALL_TAR_FILE) \n"
56
56
57
57
clean :
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
-
4
3
# Once package is installed this script will called to enable the service
4
+
5
+ # Reload systemd unit files
6
+ systemctl daemon-reload || true
7
+
8
+ echo " [postinst] Enabling service..."
5
9
systemctl enable cos-csi-mounter.service
10
+
11
+ echo " [postinst] Starting service..."
6
12
systemctl start cos-csi-mounter.service
13
+
14
+ echo " [postinst] Done."
You can’t perform that action at this time.
0 commit comments