fix: fix target Docker Hub repository (#96) #92
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/kubernetes-setup |