diff --git a/.github/workflows/publish_images.yml b/.github/workflows/publish_images.yml index 36bb3c53086f7998b9e8b58e5906922eb3a51909..1c7c1ffed0d451d43ff07cffc7b9d2c777b26a39 100644 --- a/.github/workflows/publish_images.yml +++ b/.github/workflows/publish_images.yml @@ -21,11 +21,18 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - name: Log in to EBRAINS HARBOR + uses: docker/login-action@v2 + with: + registry: docker-registry.ebrains.eu + username: ${{ secrets.HARBOR_USERNAME }} + password: ${{ secrets.HARBOR_PASSWORD }} + - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 with: - images: hbpmip/portal-backend + images: portal-backend - name: Load cached image uses: actions/cache@v2 @@ -40,7 +47,9 @@ jobs: context: . file: ./Dockerfile push: true - tags: ${{ steps.meta.outputs.tags }} + tags: | + hbpmip/${{ steps.meta.outputs.tags }} + docker-registry.ebrains.eu/medical-informatics-platform/${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=local,src=/tmp/.buildx-cache/portal-backend cache-to: type=local,dest=/tmp/.buildx-cache-new/portal-backend