Skip to content

Commit e91db72

Browse files
committed
add uninstall script to release artifacts
1 parent da3c3e6 commit e91db72

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Earthfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ release:
1616
--PLATFORM=linux \
1717
--ARCH=amd64 \
1818
--ARCH=arm64
19+
20+
BUILD +uninstall-script
1921

2022
BUILD +install-script
2123

@@ -32,6 +34,9 @@ release-fips:
3234
--ARCH=arm64 \
3335
--FIPS=true
3436

37+
BUILD +uninstall-script \
38+
--FIPS=true
39+
3540
BUILD +install-script \
3641
--FIPS=true
3742

@@ -46,6 +51,8 @@ nightly:
4651
--ARCH=amd64 \
4752
--ARCH=arm64
4853

54+
BUILD +uninstall-script
55+
4956
BUILD +install-script
5057

5158
nightly-fips:
@@ -61,6 +68,9 @@ nightly-fips:
6168
--ARCH=arm64 \
6269
--FIPS=true
6370

71+
BUILD +uninstall-script \
72+
--FIPS=true
73+
6474
BUILD +install-script \
6575
--FIPS=true
6676

@@ -96,6 +106,20 @@ palette-agent:
96106

97107
SAVE ARTIFACT /workdir/palette-agent AS LOCAL ./build/${BIN_NAME}
98108

109+
uninstall-script:
110+
FROM +ubuntu
111+
112+
ARG FIPS=false
113+
ARG PE_VERSION=$(head -n 1 PE_VERSION)
114+
ARG PLATFORM=linux
115+
ARG ARCH=amd64
116+
ARG STYLUS_IMAGE=${SPECTRO_PUB_REPO}/edge/stylus-agent-mode-${PLATFORM}-${ARCH}:${PE_VERSION}
117+
118+
WORKDIR /workdir
119+
COPY (+stylus-image/opt/spectrocloud/scripts/spectro-uninstall.sh --PLATFORM=${PLATFORM} --ARCH=${ARCH} --STYLUS_IMAGE=${STYLUS_IMAGE}) /workdir/spectro-uninstall.sh
120+
121+
SAVE ARTIFACT /workdir/spectro-uninstall.sh AS LOCAL ./build/spectro-uninstall-${PLATFORM}-${ARCH}.sh
122+
99123
package-tar:
100124
FROM +ubuntu
101125

0 commit comments

Comments
 (0)