Skip to content

Commit 06ca037

Browse files
Merge pull request #1058 from grafana/nm/fix-dashboard-converter
Use OIDC to push dashboard-converter image to docker hub
2 parents 17a45ce + cba3b7f commit 06ca037

1 file changed

Lines changed: 0 additions & 34 deletions

File tree

.github/workflows/dashboard-converter.yaml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -35,40 +35,6 @@ jobs:
3535
- name: Run tests
3636
run: make test
3737

38-
docker:
39-
if: github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/dashboard-converter-')
40-
runs-on: ubuntu-latest
41-
steps:
42-
- name: Checkout
43-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
44-
with:
45-
persist-credentials: false
46-
- name: Set up Docker Buildx
47-
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
48-
- name: Log in to Docker Hub
49-
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
50-
with:
51-
username: ${{ secrets.DOCKER_USERNAME }}
52-
password: ${{ secrets.DOCKER_PASSWORD }}
53-
- name: Extract metadata
54-
id: meta
55-
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
56-
with:
57-
images: grafana/dashboard-converter
58-
tags: |
59-
type=ref,event=branch
60-
type=sha
61-
- name: Build and push
62-
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
63-
with:
64-
context: scripts/dashboard-converter
65-
push: true
66-
tags: ${{ steps.meta.outputs.tags }}
67-
labels: ${{ steps.meta.outputs.labels }}
68-
platforms: linux/amd64,linux/arm64
69-
cache-from: type=gha
70-
cache-to: type=gha,mode=max
71-
7238
version:
7339
if: startsWith(github.ref, 'refs/tags/dashboard-converter-')
7440
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)