github: Deploy to Docker Hub

This commit is contained in:
Johan Gunnarsson 2022-07-23 22:22:59 +02:00
parent f1a1370a8a
commit 4ef14fc9e3
1 changed files with 3 additions and 4 deletions

View File

@ -153,9 +153,8 @@ jobs:
if: github.event_name != 'pull_request' && github.ref_name == 'master'
uses: docker/login-action@v1
with:
registry: public.ecr.aws/johang
username: AWS
password: ${{ secrets.AWS_ECR_PASSWORD }}
username: johang
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
@ -163,4 +162,4 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' && github.ref_name == 'master' }}
tags: public.ecr.aws/johang/sd-card-images:latest
tags: johang/sd-card-images:latest