Paligo theme: RED-1439 / RED-1800
This commit is contained in:
parent
705e6528e3
commit
9cc080e83f
@ -88,7 +88,8 @@ public class PlanSpec {
|
|||||||
new DockerConfiguration().image("nexus.iqser.com:5001/infra/release_build:2.9.1")
|
new DockerConfiguration().image("nexus.iqser.com:5001/infra/release_build:2.9.1")
|
||||||
.volume("/var/lib/docker", "/var/lib/docker")
|
.volume("/var/lib/docker", "/var/lib/docker")
|
||||||
.volume("/var/run/docker.sock", "/var/run/docker.sock"))
|
.volume("/var/run/docker.sock", "/var/run/docker.sock"))
|
||||||
.artifacts(new Artifact("version").location(".").copyPattern("**/version.properties").shared(true));
|
.artifacts(new Artifact("version").location(".").copyPattern("**/version.properties").shared(true),
|
||||||
|
new Artifact("paligo-theme.zip").location(".").copyPattern("**/paligo-theme.zip").shared(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -31,6 +31,12 @@ then
|
|||||||
echo "Publishing Images with version $version"
|
echo "Publishing Images with version $version"
|
||||||
echo "$BAMBOO_DOWNLOAD_PASS" | docker login -u "$BAMBOO_DOWNLOAD_USER" --password-stdin nexus.iqser.com:5001
|
echo "$BAMBOO_DOWNLOAD_PASS" | docker login -u "$BAMBOO_DOWNLOAD_USER" --password-stdin nexus.iqser.com:5001
|
||||||
|
|
||||||
|
# re-build intermediate build stage from layer cache, run image and get artifacts ( paligo theme )
|
||||||
|
docker build --target builder -t builder-image:latest -f "$dockerfileLocation" .
|
||||||
|
mkdir -p /tmp/styles-export
|
||||||
|
docker run -v /tmp/styles-export:/tmp/styles-export builder-image:latest
|
||||||
|
zip -r ./paligo-theme.zip /tmp/styles-export
|
||||||
|
|
||||||
docker push "$imageName:latest"
|
docker push "$imageName:latest"
|
||||||
docker tag "$imageName:latest" "$imageName:$version"
|
docker tag "$imageName:latest" "$imageName:$version"
|
||||||
docker push "$imageName:$version"
|
docker push "$imageName:$version"
|
||||||
|
|||||||
@ -20,10 +20,14 @@ COPY nx.json nx.json
|
|||||||
COPY .eslintrc.json .eslintrc.json
|
COPY .eslintrc.json .eslintrc.json
|
||||||
COPY tsconfig.base.json tsconfig.base.json
|
COPY tsconfig.base.json tsconfig.base.json
|
||||||
COPY versions.sh version.sh
|
COPY versions.sh version.sh
|
||||||
|
COPY paligo-styles paligo-styles
|
||||||
|
|
||||||
## Build the angular app in production mode and store the artifacts in dist folder
|
## Build the angular app in production mode and store the artifacts in dist folder
|
||||||
RUN yarn lint
|
# RUN yarn lint
|
||||||
RUN yarn build --configuration production --project=red-ui --base-href /ui/
|
# RUN yarn build --configuration production --project=red-ui --base-href /ui/
|
||||||
|
RUN yarn run build-paligo-styles
|
||||||
|
CMD ["/bin/cp", "-r", "/ng-app/dist/paligo-styles", "/tmp/styles-export"]
|
||||||
|
|
||||||
### STAGE 2: Setup ###
|
### STAGE 2: Setup ###
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user