From a4beaf22c7b586a90fa0f5c54e35a2963c1da4ad Mon Sep 17 00:00:00 2001 From: Alexander Gesinn <86293558+alexander-gesinn@users.noreply.github.com> Date: Wed, 5 Jun 2024 10:35:55 +0200 Subject: [PATCH] Update docker-publish.yml chore (docker-publish): updated actions --- .github/workflows/docker-publish.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index d64ac98..5fc1ef4 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -2,13 +2,12 @@ name: Publish docker image on: release: - types: - - published + types: [created] workflow_dispatch: env: REGISTRY: ghcr.io - IMAGE_NAME: gesinn-it-pub/openresearch-stack + IMAGE_NAME: tibhannover/openresearch-stack jobs: build: @@ -21,10 +20,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Log in to the Container registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -32,12 +31,12 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - name: Build and push Docker image - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: ./context tags: ${{ steps.meta.outputs.tags }}