Skip to content

Commit

Permalink
feat: push containers to Docker Hub repository
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
  • Loading branch information
Dominik Rosiek committed Apr 18, 2024
1 parent 1a3d8b1 commit 6c0dba7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/dev_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 12 additions & 0 deletions .github/workflows/release_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6c0dba7

Please sign in to comment.