Skip to content

Commit 211bfdb

Browse files
committed
test image build
1 parent 4181ef6 commit 211bfdb

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

.github/workflows/old.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -139,19 +139,23 @@ jobs:
139139
find dist -type f
140140
continue-on-error: false
141141

142-
# - name: Build and Push Docker Image
143-
# uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
144-
# with:
145-
# file: build/Dockerfile
146-
# context: "."
147-
# target: goreleaser
148-
# platforms: ${{ env.DOCKER_PLATFORMS }}
149-
# tags: ${{ steps.meta.outputs.tags }}
150-
# labels: ${{ steps.meta.outputs.labels }}
151-
# annotations: ${{ steps.meta.outputs.annotations }}
152-
# push: true
153-
# cache-from: type=gha,scope=exporter
154-
# cache-to: type=gha,scope=exporter,mode=max
155-
# no-cache: true
156-
# provenance: mode=max
157-
# sbom: true
142+
- name: Build and Push Docker Image
143+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
144+
with:
145+
file: build/Dockerfile
146+
context: "."
147+
target: goreleaser
148+
platforms: ${{ env.DOCKER_PLATFORMS }}
149+
tags: ${{ steps.meta.outputs.tags }}
150+
labels: ${{ steps.meta.outputs.labels }}
151+
annotations: ${{ steps.meta.outputs.annotations }}
152+
push: false
153+
cache-from: type=gha,scope=exporter
154+
cache-to: type=gha,scope=exporter,mode=max
155+
no-cache: true
156+
load: true
157+
provenance: mode=max
158+
sbom: true
159+
160+
- name: check image
161+
run: docker run -it --entrypoint "" nginx/nginx-prometheus-exporter:${{ needs.variables.outputs.tag }} nginx-prometheus-exporter --version

0 commit comments

Comments
 (0)