update act runner.

This commit is contained in:
amass 2024-10-10 20:49:43 +08:00
parent 1a0cc7b972
commit e4e085908b
2 changed files with 6 additions and 5 deletions

View File

@ -4,7 +4,7 @@ LABEL maintainer="amass <168062547@qq.com>"
ENV DEBIAN_FRONTEND=noninteractive
ENV ACT_VERSION 0.2.10
ENV ACT_VERSION 0.2.11
RUN sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list.d/ubuntu.sources \
&& apt update \
@ -23,5 +23,5 @@ COPY resources/act_runner.sh /opt/act/run.sh
ENTRYPOINT ["tini","--","/opt/act/run.sh"]
# docker build --progress tty -f act_runner.dockerfile -t frp-by1.wwvvww.cn:45288/act_runner:0.2.10 .
# docker push frp-by1.wwvvww.cn:45288/act_runner:0.2.10
# docker build --progress tty -f act_runner.dockerfile -t registry.cn-shenzhen.aliyuncs.com/amass_toolset/act_runner:0.2.11 .
# docker push registry.cn-shenzhen.aliyuncs.com/amass_toolset/act_runner:0.2.11

View File

@ -4,8 +4,9 @@ function build() {
local DOCKERFILE=$1
echo "build $DOCKERFILE"
if [[ $DOCKERFILE == *"act_runner.dockerfile" ]]; then
docker build --progress=plain -f $DOCKERFILE -t registry.cn-shenzhen.aliyuncs.com/amass_toolset/act_runner:0.2.10 .
docker push registry.cn-shenzhen.aliyuncs.com/amass_toolset/act_runner:0.2.10
ACT_RUNNER_VERSION=$(grep 'ENV ACT_VERSION' act_runner.dockerfile | awk '{print $3}')
docker build --progress=plain -f $DOCKERFILE -t registry.cn-shenzhen.aliyuncs.com/amass_toolset/act_runner:$ACT_RUNNER_VERSION .
docker push registry.cn-shenzhen.aliyuncs.com/amass_toolset/act_runner:$ACT_RUNNER_VERSION
elif [[ $DOCKERFILE == *"nanopb.dockerfile" ]]; then
docker build --progress=plain -f $DOCKERFILE -t registry.cn-shenzhen.aliyuncs.com/amass_toolset/nanopb:0.3.9.3 .
docker push registry.cn-shenzhen.aliyuncs.com/amass_toolset/nanopb:0.3.9.3