From 06d7914b978968ccba10e25cd7914c6f8f3eb50b Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 28 May 2024 16:17:55 +0200 Subject: [PATCH] ci: use GitHub secrets to connect to dockerhub --- .github/workflows/release.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 45d3202..0ed6c45 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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