From 4eb548ddddbc7d5f22079800189253bbb4389e62 Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Fri, 22 Dec 2023 18:05:03 +0800 Subject: [PATCH] .github/workflows/prometheus.yaml: update --- .github/workflows/prometheus.yaml | 4 ++++ oci/prometheus/Dockerfile | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prometheus.yaml b/.github/workflows/prometheus.yaml index 7f05424..754c830 100644 --- a/.github/workflows/prometheus.yaml +++ b/.github/workflows/prometheus.yaml @@ -17,6 +17,10 @@ jobs: steps: - uses: actions/checkout@master + - name: get /usr/share/zoneinfo/Asia/Shanghai + shell: cp /usr/share/zoneinfo/Asia/Shanghai zoneinfo-Shanghai + working-directory: oci/prometheus/ + - name: 'Artifact: build && push alpine with custom ca image' uses: aevea/action-kaniko@master with: diff --git a/oci/prometheus/Dockerfile b/oci/prometheus/Dockerfile index c095cbd..78b2b6f 100644 --- a/oci/prometheus/Dockerfile +++ b/oci/prometheus/Dockerfile @@ -1,6 +1,6 @@ FROM quay.io/prometheus/prometheus:v2.48.1 -COPY /usr/share/zoneinfo/Asia/Shanghai /etc/localtime +COPY zoneinfo-Shanghai /etc/localtime USER nobody EXPOSE 9090