File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 4040 - name : Build artifacts
4141 run : |
4242 earthly --ci --output +release --VERSION=${{ steps.version.outputs.version }}
43+ - name : Build FIPS artifacts
44+ run : |
45+ earthly --ci --output +release-fips --VERSION=${{ steps.version.outputs.version }}
46+ - name : List artifacts
47+ run : |
48+ ls -l build/*
Original file line number Diff line number Diff line change @@ -107,14 +107,19 @@ install-script:
107107 ARG IMAGE_REPO= ${SPECTRO_PUB_REPO }/edge
108108 # https://github.com/spectrocloud/agent-mode/releases/download/v4.5.0-rc2/palette-agent-linux-amd64
109109 ARG AGENT_URL_PREFIX= https://github.com/spectrocloud/agent-mode/releases/download/${VERSION }
110+ IF $FIPS
111+ ARG SCRIPT_NAME= palette-agent-install-fips.sh
112+ ELSE
113+ ARG SCRIPT_NAME= palette-agent-install.sh
114+ END
110115
111116 ENV PE_VERSION= ${PE_VERSION }
112117 ENV IMAGE_REPO= ${IMAGE_REPO }
113118 ENV AGENT_URL_PREFIX= ${AGENT_URL_PREFIX }
114119
115120 WORKDIR /workdir
116121 COPY palette-agent-install.sh.tmpl /workdir/palette-agent-install.sh.tmpl
117- RUN envsubst '${PE_VERSION} ${IMAGE_REPO} ${AGENT_URL_PREFIX}' < /workdir/palette-agent-install.sh.tmpl > /workdir/palette-agent-install.sh
118- RUN chmod +x /workdir/palette-agent-install.sh
122+ RUN envsubst '${PE_VERSION} ${IMAGE_REPO} ${AGENT_URL_PREFIX}' < /workdir/palette-agent-install.sh.tmpl > /workdir/${ SCRIPT_NAME }
123+ RUN chmod +x /workdir/${ SCRIPT_NAME }
119124
120- SAVE ARTIFACT /workdir/palette-agent-install.sh AS LOCAL ./build/palette-agent-install.sh
125+ SAVE ARTIFACT /workdir/${SCRIPT_NAME} AS LOCAL ./build/${ SCRIPT_NAME }
You can’t perform that action at this time.
0 commit comments