Skip to content

Commit

Permalink
ci: use GitHub secrets to connect to dockerhub (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored May 28, 2024
1 parent ebdd47c commit e6a9cb2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- uses: elastic/apm-pipeline-library/.github/actions/docker-login@current
- name: Log in to the Container registry
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
with:
registry: docker.io
secret: secret/apm-team/ci/elastic-observability-dockerhub
url: ${{ secrets.VAULT_ADDR }}
roleId: ${{ secrets.VAULT_ROLE_ID }}
secretId: ${{ secrets.VAULT_SECRET_ID }}
registry: ${{ secrets.DOCKERHUB_REGISTRY }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Extract metadata (tags, labels)
id: docker-meta
Expand Down

0 comments on commit e6a9cb2

Please sign in to comment.