Merge pull request 'build devel docker image' (#4) from dany-patch-1 into master

Allows to build devel docker images
This commit is contained in:
dany 2022-09-16 13:54:40 +02:00
commit e33bb262ea
2 changed files with 23 additions and 3 deletions

View File

@ -49,7 +49,7 @@ RUN mkdir /platform
COPY antos/ /
RUN cp /backend/$(uname -m)/* /platform -rf
FROM busybox:stable-glibc
ARG tag
#copy all necessary libraries
COPY --from=deploy-env /ulib/* /lib/
COPY --from=deploy-env /bin/wget /bin/
@ -67,7 +67,7 @@ COPY antd-config.ini /opt/www/antd-config.ini
COPY runner.ini /opt/www/runner.ini
RUN chmod 744 /opt/www/antd-config.ini
RUN chmod 744 /opt/www/runner.ini
COPY antos/frontend/ /
COPY antos/frontend/$tag/ /
RUN chown -R root:root /opt/www/htdocs/
RUN rm -rf /etc/systemd
COPY start.sh /start.sh

22
Jenkinsfile vendored
View File

@ -30,7 +30,7 @@ pipeline{
}
stages
{
stage('Build') {
stage('Build latest') {
steps {
sshCommand remote: remote, command: '''
set -e
@ -43,10 +43,30 @@ pipeline{
docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
docker buildx build \
--push \
--build-arg tag=latest \
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
--tag xsangle/antosaio:latest .
'''
}
}
stage('Build devel') {
steps {
sshCommand remote: remote, command: '''
set -e
export WORKSPACE=$(realpath "./jenkins/workspace/antosaio-docker")
cd $WORKSPACE
[ -d antos ] && rm antos
mkdir antos
cp /var/jenkins_home/workspace/nightly-antosaio/build/* antos -rf
tree antos
docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
docker buildx build \
--push \
--build-arg tag=devel \
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
--tag xsangle/antosaio:devel .
'''
}
}
}
}