Added CI
agola/fox-proxy-lessl/Build image The run finished successfully
Details
agola/fox-proxy-lessl/Build image The run finished successfully
Details
This commit is contained in:
parent
2632c80fa5
commit
efccafed3b
|
@ -0,0 +1,44 @@
|
|||
version: v0
|
||||
runs:
|
||||
- name: Build image
|
||||
docker_registries_auth:
|
||||
'mxfox.ru':
|
||||
username:
|
||||
from_variable: mxfoxDockerLogin
|
||||
password:
|
||||
from_variable: mxfoxDockerSecret
|
||||
tasks:
|
||||
- name: build docker image
|
||||
runtime:
|
||||
containers:
|
||||
- image: mxfox.ru/mxfox/docker-dind.buildx:latest
|
||||
privileged: true
|
||||
#shell: /busybox/sh
|
||||
working_dir: /workspace
|
||||
environment:
|
||||
DOCKERLOGIN:
|
||||
from_variable: mxfoxDockerLogin
|
||||
DOCKERPASS:
|
||||
from_variable: mxfoxDockerSecret
|
||||
steps:
|
||||
- clone:
|
||||
- run:
|
||||
name: buildX prepare
|
||||
command: buildx-bgstart.sh
|
||||
|
||||
- run:
|
||||
name: buildX build
|
||||
command: |
|
||||
case ${AGOLA_GIT_BRANCH} in
|
||||
master)
|
||||
export xBuildSuffix=" -t mxfox.ru/mxfox/fox-proxy-lessl:latest --push"
|
||||
;;
|
||||
test)
|
||||
export xBuildSuffix=" -t mxfox.ru/mxfox/fox-proxy-lessl:test --push"
|
||||
;;
|
||||
*)
|
||||
export xBuildSuffix=""
|
||||
;;
|
||||
esac
|
||||
docker login mxfox.ru -u ${DOCKERLOGIN} -p ${DOCKERPASS}
|
||||
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 . ${xBuildSuffix}
|
28
Dockerfile
28
Dockerfile
|
@ -1,22 +1,16 @@
|
|||
FROM ubuntu
|
||||
FROM ubuntu:21.10
|
||||
|
||||
#COPY apt-add-repos /usr/local/sbin
|
||||
COPY timezone /etc/timezone
|
||||
COPY localtime /etc/localtime
|
||||
RUN apt-get update -y \
|
||||
&& apt-get install -y \
|
||||
nginx \
|
||||
supervisor \
|
||||
certbot \
|
||||
python3-certbot-nginx \
|
||||
cron \
|
||||
&& rm -rf /tmp/* \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN apt update -y \
|
||||
&& apt-get install nginx supervisor -y
|
||||
|
||||
RUN apt-get install certbot python-certbot-nginx cron -y
|
||||
|
||||
#RUN rm -rf /var/www/html
|
||||
COPY nginx.conf /etc/nginx/
|
||||
COPY proxy-params.conf /etc/nginx/
|
||||
#COPY fox-web /var/www/html
|
||||
|
||||
#RUN a2enmod rewrite
|
||||
|
||||
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
COPY ./rootfs /
|
||||
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
|
|
Loading…
Reference in New Issue