Skip to content

feat: push containers to Docker Hub repository (#94) #91

feat: push containers to Docker Hub repository (#94)

feat: push containers to Docker Hub repository (#94) #91

Workflow file for this run

name: Dev builds
on:
push:
branches:
- main
jobs:
setup-image:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Buildx
id: buildx
uses: docker/[email protected]
- name: Show Buildx platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Login to Open Source ECR
run: make login
env:
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