File tree Expand file tree Collapse file tree 1 file changed +20
-16
lines changed Expand file tree Collapse file tree 1 file changed +20
-16
lines changed Original file line number Diff line number Diff line change @@ -139,19 +139,23 @@ jobs:
139
139
find dist -type f
140
140
continue-on-error : false
141
141
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
You can’t perform that action at this time.
0 commit comments