diff --git a/.github/workflows/dev_builds.yml b/.github/workflows/dev_builds.yml index d7ef218..f55ad12 100644 --- a/.github/workflows/dev_builds.yml +++ b/.github/workflows/dev_builds.yml @@ -27,5 +27,16 @@ jobs: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + - name: Login to Docker Hub + run: | + docker login \ + --username ${{ secrets.DOCKERHUB_LOGIN }} \ + --password ${{ secrets.DOCKERHUB_PASSWORD }} + - name: Build and push image to Open Source ECR run: make build-push-multiplatform + + - name: Build and push image to Docker Hub + run: |- + make build-push-multiplatform \ + REPO_URL=sumologic/sumologic-otel-collector diff --git a/.github/workflows/release_builds.yml b/.github/workflows/release_builds.yml index df91393..f0d92f2 100644 --- a/.github/workflows/release_builds.yml +++ b/.github/workflows/release_builds.yml @@ -37,5 +37,17 @@ jobs: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + - name: Login to Docker Hub + run: | + docker login \ + --username ${{ secrets.DOCKERHUB_LOGIN }} \ + --password ${{ secrets.DOCKERHUB_PASSWORD }} + - name: Build and push image to Open Source ECR run: make build-push-multiplatform BUILD_TAG=${{ steps.extract_tag.outputs.tag }} + + - name: Build and push image to Docker Hub + run: |- + make build-push-multiplatform \ + BUILD_TAG=${{ steps.extract_tag.outputs.tag }} \ + REPO_URL=sumologic/sumologic-otel-collector