Skip to content

Commit

Permalink
配置调整了Docker镜像的默认时区支持
Browse files Browse the repository at this point in the history
Docker镜像中增加了 tzdata ca-certificates bash 三个包
  • Loading branch information
gcslaoli committed Aug 9, 2022
1 parent 58816d7 commit e143b3e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: hjm-certcheck Build Release
name: Build Release
on:
push:
tags:
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:

##############################################################################################
# 以下为Docker镜像的构建 #
# 需要提前配置好 secrets.DOCKERHUB_USERNAME secrets.DOCKERHUB_PASSWORD #
# 需要提前配置好 secrets.DOCKERHUB_USERNAME secrets.DOCKERHUB_TOKEN #
# Dockerfile文件默认在 ./Dockerfile #
##############################################################################################
-
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/386,linux/ppc64le,linux/s390x
platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/386,linux/ppc64le
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ WORKDIR /tmp
RUN curl -L -o hjm-certcheck https://github.com/hjmcloud/hjm-certcheck/releases/latest/download/hjm-certcheck_linux_$(go env GOARCH)

FROM alpine
# Install dependencies
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
Expand Down
3 changes: 3 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# hjm-certcheck 证书检测服务

[![Build Release](https://github.com/hjmcloud/hjm-certcheck/actions/workflows/release.yml/badge.svg)](https://github.com/hjmcloud/hjm-certcheck/actions/workflows/release.yml)[![Sync Mirror](https://github.com/hjmcloud/hjm-certcheck/actions/workflows/sync-mirror.yml/badge.svg)](https://github.com/hjmcloud/hjm-certcheck/actions/workflows/sync-mirror.yml)

## 功能说明

- 在线检测证书是否过期
Expand All @@ -14,3 +16,4 @@
- [GitHub 仓库](https://github.com/hjmcloud/hjm-certcheck)
- [GitHub Release](https://github.com/hjmcloud/hjm-certcheck/releases)
- [Gitee 镜像仓库](https://gitee.com/hjmcloud/hjm-certcheck)
- [Docker Hub](https://hub.docker.com/r/hjmcloud/hjm-certcheck/)

0 comments on commit e143b3e

Please sign in to comment.