update build script.
Some checks failed
Deploy Docker Images / Docusaurus build and Server deploy (push) Failing after 12m51s

This commit is contained in:
amass 2024-08-19 23:32:37 +08:00
parent 91f152c0a3
commit e2f4974f89
2 changed files with 6 additions and 3 deletions

View File

@ -12,6 +12,9 @@ function build() {
elif [[ $DOCKERFILE == *"ubuntu2404.dockerfile" ]]; then
docker build -f $DOCKERFILE -t frp-by1.wwvvww.cn:45288/ubuntu_dev:24.04 .
docker push frp-by1.wwvvww.cn:45288/ubuntu_dev:24.04
elif [[ $DOCKERFILE == *"ubuntu2204.dockerfile" ]]; then
docker build -f $DOCKERFILE -t frp-by1.wwvvww.cn:45288/ubuntu_dev:22.04 .
docker push frp-by1.wwvvww.cn:45288/ubuntu_dev:22.04
elif [[ $DOCKERFILE == *"ubuntu1604.dockerfile" ]]; then
docker build -f $DOCKERFILE -t frp-by1.wwvvww.cn:45288/ubuntu_dev:16.04 .
docker push frp-by1.wwvvww.cn:45288/ubuntu_dev:16.04
@ -20,8 +23,8 @@ function build() {
fi
}
function deploy(){
local DOCKERFILE=$1
function deploy() {
local DOCKERFILE=$1
deply "build $DOCKERFILE"
}

View File

@ -29,7 +29,7 @@ RUN mkdir /var/run/sshd \
&& chmod 600 /root/.ssh/authorized_keys && chown root:root /root/.ssh/authorized_keys
EXPOSE 1022
EXPOSE 1022
RUN git config --global user.email "168062547@qq.com" \
&& git config --global user.name "amass"