diff --git a/.github/workflows/ebrains.yml b/.github/workflows/ebrains.yml index 8e4025aec3ecb0baae8d03088c82a03899795c4f..ae65815a14025ec721dab572284c3c36271265ce 100644 --- a/.github/workflows/ebrains.yml +++ b/.github/workflows/ebrains.yml @@ -3,6 +3,9 @@ name: Mirror to Ebrains on: push: branches: [ master ] + push: + tags: + - '*' jobs: to_ebrains: diff --git a/.github/workflows/publish_images.yml b/.github/workflows/publish_images.yml index 1c7c1ffed0d451d43ff07cffc7b9d2c777b26a39..a7e0d99afec3a501c5c209d939bd9ad9f3fc8191 100644 --- a/.github/workflows/publish_images.yml +++ b/.github/workflows/publish_images.yml @@ -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 diff --git a/.github/workflows/publish_testing_images.yml b/.github/workflows/publish_testing_images.yml index ffce4b047d3ed1acdee07ce1dcbf292cb5205ac3..6581517e90444e2f5e2ef32a4cd08f8a1ce228c9 100644 --- a/.github/workflows/publish_testing_images.yml +++ b/.github/workflows/publish_testing_images.yml @@ -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