push docker release into dockerhub & ghcr
@@ -63,12 +63,17 @@ jobs:
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- - name: Login
+ - name: Login to GHCR
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ secrets.PKG_USER }}
password: ${{ secrets.PKG_PWD }}
+ - name: Login to DockerHub
+ uses: docker/login-action@v1
+ with:
+ username: ${{ secrets.DOCKERHUB_USER }}
+ password: ${{ secrets.DOCKERHUB_PWD }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
@@ -76,7 +81,9 @@ jobs:
context: .
push: true
platforms: linux/amd64
- tags: ghcr.io/galacticcouncil/hydra-dx:latest
+ tags: |
+ ghcr.io/galacticcouncil/hydra-dx:latest
+ galacticcouncil/hydra-dx:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
