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