Skip to content
Snippets Groups Projects
Commit c73f5af2 authored by ThanKarab's avatar ThanKarab
Browse files

Pushing docker images to ebrains harbor.

parent d01034c9
No related branches found
No related tags found
No related merge requests found
Pipeline #21948 canceled with stages
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment