Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 74e1d3d
Author: LiDong <[email protected]>
Date:   Tue Aug 9 17:48:25 2022 +0800

    一步构建

commit 6305e47
Author: LiDong <[email protected]>
Date:   Tue Aug 9 17:23:26 2022 +0800

    一步构建测试

commit 84dc203
Author: LiDong <[email protected]>
Date:   Tue Aug 9 16:02:51 2022 +0800

    调整镜像同步任务为在提交tag时执行

commit 0612b86
Author: LiDong <[email protected]>
Date:   Tue Aug 9 14:47:33 2022 +0800

    set TZ Asia/ShangHai

commit 9295c99
Author: LiDong <[email protected]>
Date:   Tue Aug 9 14:10:00 2022 +0800

    fix help

commit 5ec0148
Merge: d373e70 58816d7
Author: LiDong <[email protected]>
Date:   Tue Aug 9 14:03:50 2022 +0800

    Merge branch 'master' into dev

commit d373e70
Author: LiDong <[email protected]>
Date:   Tue Aug 9 13:58:48 2022 +0800

    add badge

commit ad278ae
Merge: 1b616ee ba8fb1d
Author: LiDong <[email protected]>
Date:   Tue Aug 9 13:51:17 2022 +0800

    Merge branch 'dev' of github.com:hjmcloud/hjm-certcheck into dev

commit 1b616ee
Author: LiDong <[email protected]>
Date:   Tue Aug 9 13:51:10 2022 +0800

    add docker publish task

commit ba8fb1d
Author: 李栋 <[email protected]>
Date:   Mon Aug 8 19:43:43 2022 +0800

    fix homepage

commit afd9430
Merge: 01a53b2 6852109
Author: 李栋 <[email protected]>
Date:   Mon Aug 8 19:29:32 2022 +0800

    Merge branch 'master' into dev

commit 01a53b2
Author: 李栋 <[email protected]>
Date:   Mon Aug 8 19:24:11 2022 +0800

    change build auto tag

commit 2526f73
Author: LiDong <[email protected]>
Date:   Mon Aug 8 17:31:39 2022 +0800

    default version set to development

commit d423ba6
Author: LiDong <[email protected]>
Date:   Mon Aug 8 16:47:06 2022 +0800

    change README
  • Loading branch information
gcslaoli committed Aug 9, 2022
1 parent e143b3e commit 5332c23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/sync-mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
name: Sync Mirror
on:
push:
branches:
- master
tags:
- v*
env:
Expand Down
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
FROM golang AS download
WORKDIR /tmp
RUN curl -L -o hjm-certcheck https://github.com/hjmcloud/hjm-certcheck/releases/latest/download/hjm-certcheck_linux_$(go env GOARCH)
# FROM golang AS download
# WORKDIR /tmp
# # RUN curl -L -o hjm-certcheck https://github.com/hjmcloud/hjm-certcheck/releases/latest/download/hjm-certcheck_linux_$(go env GOARCH)
# ARG src=temp/linux_$(go env GOARCH)
# COPY ${src} ./hjm-certcheck

FROM alpine
# Install dependencies
ARG TARGETARCH
RUN echo "I'm building for $TARGETARCH"
ENV TZ Asia/Shanghai
RUN apk update && apk add tzdata ca-certificates bash
# Install hjm-certcheck
ENV WORKDIR /app
ADD resource $WORKDIR/
# ADD ./temp/linux_amd64/main $WORKDIR/main
COPY --from=download /tmp/hjm-certcheck $WORKDIR/hjm-certcheck
COPY temp/hjm-certcheck_linux_$TARGETARCH $WORKDIR/hjm-certcheck
RUN chmod +x $WORKDIR/hjm-certcheck

###############################################################################
Expand Down

0 comments on commit 5332c23

Please sign in to comment.