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

Updated all github CI actions versions.

parent c73f5af2
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,9 @@ name: Mirror to Ebrains
on:
push:
branches: [ master ]
push:
tags:
- '*'
jobs:
to_ebrains:
......
......@@ -10,13 +10,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
......@@ -30,19 +30,19 @@ jobs:
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
uses: docker/metadata-action@v4
with:
images: portal-backend
- name: Load cached image
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache/portal-backend
key: buildx-backend
restore-keys: buildx-backend
- name: Build and Push image to dockerhub
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
......@@ -50,7 +50,6 @@ jobs:
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
......
......@@ -11,26 +11,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Load cached image
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache/portal-backend
key: buildx-backend
restore-keys: buildx-backend
- name: Build and Push image to dockerhub
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
......
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