.github/workflows/prometheus.yaml: update

This commit is contained in:
Haitao Pan 2023-12-22 18:05:03 +08:00
parent d07d256d9d
commit 4eb548dddd
2 changed files with 5 additions and 1 deletions

View File

@ -17,6 +17,10 @@ jobs:
steps: steps:
- uses: actions/checkout@master - 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' - name: 'Artifact: build && push alpine with custom ca image'
uses: aevea/action-kaniko@master uses: aevea/action-kaniko@master
with: with:

View File

@ -1,6 +1,6 @@
FROM quay.io/prometheus/prometheus:v2.48.1 FROM quay.io/prometheus/prometheus:v2.48.1
COPY /usr/share/zoneinfo/Asia/Shanghai /etc/localtime COPY zoneinfo-Shanghai /etc/localtime
USER nobody USER nobody
EXPOSE 9090 EXPOSE 9090