Paligo theme: RED-1439 / RED-1800

This commit is contained in:
Timo 2021-07-12 20:21:24 +03:00
parent 705e6528e3
commit 9cc080e83f
3 changed files with 14 additions and 3 deletions

View File

@ -88,7 +88,8 @@ public class PlanSpec {
new DockerConfiguration().image("nexus.iqser.com:5001/infra/release_build:2.9.1")
.volume("/var/lib/docker", "/var/lib/docker")
.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));
}

View File

@ -31,6 +31,12 @@ then
echo "Publishing Images with version $version"
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 tag "$imageName:latest" "$imageName:$version"
docker push "$imageName:$version"

View File

@ -20,10 +20,14 @@ COPY nx.json nx.json
COPY .eslintrc.json .eslintrc.json
COPY tsconfig.base.json tsconfig.base.json
COPY versions.sh version.sh
COPY paligo-styles paligo-styles
## Build the angular app in production mode and store the artifacts in dist folder
RUN yarn lint
RUN yarn build --configuration production --project=red-ui --base-href /ui/
# RUN yarn lint
# 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 ###