Skip to content

Commit 7edcd15

Browse files
committed
push to localhost for testing
1 parent 211bfdb commit 7edcd15

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/old.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ jobs:
4747
id-token: write # for OIDC login to AWS ECR and goreleaser/goreleaser-action to sign artifacts
4848
packages: write # for docker/build-push-action to push to GHCR
4949
issues: write # for goreleaser/goreleaser-action to close milestones
50-
50+
services:
51+
registry:
52+
image: registry:3
53+
ports:
54+
- 5000:5000
5155
steps:
5256
- name: Checkout Repository
5357
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -104,10 +108,7 @@ jobs:
104108
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
105109
with:
106110
images: |
107-
name=nginx/nginx-prometheus-exporter,enable=true
108-
name=ghcr.io/nginx/nginx-prometheus-exporter,enable=true
109-
name=public.ecr.aws/nginx/nginx-prometheus-exporter,enable=true
110-
name=quay.io/nginx/nginx-prometheus-exporter,enable=true
111+
name=localhost:5000/nginx/nginx-prometheus-exporter
111112
tags: |
112113
type=raw,value=${{ needs.variables.outputs.tag }}
113114
type=raw,value=${{ needs.variables.outputs.short_tag }}
@@ -149,13 +150,12 @@ jobs:
149150
tags: ${{ steps.meta.outputs.tags }}
150151
labels: ${{ steps.meta.outputs.labels }}
151152
annotations: ${{ steps.meta.outputs.annotations }}
152-
push: false
153+
push: true
153154
cache-from: type=gha,scope=exporter
154155
cache-to: type=gha,scope=exporter,mode=max
155156
no-cache: true
156-
load: true
157157
provenance: mode=max
158158
sbom: true
159159

160160
- name: check image
161-
run: docker run -it --entrypoint "" nginx/nginx-prometheus-exporter:${{ needs.variables.outputs.tag }} nginx-prometheus-exporter --version
161+
run: docker run -it --entrypoint "" localhost:5000/nginx/nginx-prometheus-exporter:${{ needs.variables.outputs.tag }} nginx-prometheus-exporter --version

0 commit comments

Comments
 (0)