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:
commit
e33bb262ea
@ -49,7 +49,7 @@ RUN mkdir /platform
|
|||||||
COPY antos/ /
|
COPY antos/ /
|
||||||
RUN cp /backend/$(uname -m)/* /platform -rf
|
RUN cp /backend/$(uname -m)/* /platform -rf
|
||||||
FROM busybox:stable-glibc
|
FROM busybox:stable-glibc
|
||||||
|
ARG tag
|
||||||
#copy all necessary libraries
|
#copy all necessary libraries
|
||||||
COPY --from=deploy-env /ulib/* /lib/
|
COPY --from=deploy-env /ulib/* /lib/
|
||||||
COPY --from=deploy-env /bin/wget /bin/
|
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
|
COPY runner.ini /opt/www/runner.ini
|
||||||
RUN chmod 744 /opt/www/antd-config.ini
|
RUN chmod 744 /opt/www/antd-config.ini
|
||||||
RUN chmod 744 /opt/www/runner.ini
|
RUN chmod 744 /opt/www/runner.ini
|
||||||
COPY antos/frontend/ /
|
COPY antos/frontend/$tag/ /
|
||||||
RUN chown -R root:root /opt/www/htdocs/
|
RUN chown -R root:root /opt/www/htdocs/
|
||||||
RUN rm -rf /etc/systemd
|
RUN rm -rf /etc/systemd
|
||||||
COPY start.sh /start.sh
|
COPY start.sh /start.sh
|
||||||
|
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
@ -30,7 +30,7 @@ pipeline{
|
|||||||
}
|
}
|
||||||
stages
|
stages
|
||||||
{
|
{
|
||||||
stage('Build') {
|
stage('Build latest') {
|
||||||
steps {
|
steps {
|
||||||
sshCommand remote: remote, command: '''
|
sshCommand remote: remote, command: '''
|
||||||
set -e
|
set -e
|
||||||
@ -43,10 +43,30 @@ pipeline{
|
|||||||
docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
|
docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
--push \
|
--push \
|
||||||
|
--build-arg tag=latest \
|
||||||
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
|
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
|
||||||
--tag xsangle/antosaio:latest .
|
--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 .
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user