From 35c917008f56fdd1aa7544d5bd2f1cfaf504a7a4 Mon Sep 17 00:00:00 2001 From: cleverchuk Date: Fri, 20 Sep 2024 08:47:17 -0400 Subject: [PATCH] NH-90479: add building auto-instrumentation docker image --- .github/workflows/push.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 3a559a8a..b4491b5b 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -532,8 +532,12 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Docker login - run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $GITHUB_USERNAME --password-stdin + - name: Login to GitHub Package Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push uses: docker/build-push-action@v5 @@ -541,4 +545,4 @@ jobs: push: true context: agent platforms: linux/amd64,linux/arm64,linux/s390x,linux/ppc64le - tags: solarwinds/autoinstrumentation-java:${{ steps.set_version.outputs.version }},solarwinds/autoinstrumentation-java:latest \ No newline at end of file + tags: ghcr.io/${{ github.repository_owner }}/autoinstrumentation-java:${{ steps.set_version.outputs.version }},ghcr.io/${{ github.repository_owner }}/autoinstrumentation-java:latest \ No newline at end of file