github: Deploy to Docker Hub
This commit is contained in:
parent
f1a1370a8a
commit
4ef14fc9e3
|
|
@ -153,9 +153,8 @@ jobs:
|
||||||
if: github.event_name != 'pull_request' && github.ref_name == 'master'
|
if: github.event_name != 'pull_request' && github.ref_name == 'master'
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: public.ecr.aws/johang
|
username: johang
|
||||||
username: AWS
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
password: ${{ secrets.AWS_ECR_PASSWORD }}
|
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
|
|
@ -163,4 +162,4 @@ jobs:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: ${{ github.event_name != 'pull_request' && github.ref_name == 'master' }}
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue