From 17a3e8c194202e17fe1e300c369eb60dbb9122fb Mon Sep 17 00:00:00 2001 From: Colin Wilk Date: Tue, 25 Jun 2024 16:59:42 +0200 Subject: [PATCH] Use Github Groups template action for building Docker Signed-off-by: Colin Wilk --- .github/workflows/docker-publish.yml | 34 +++++----------------------- 1 file changed, 6 insertions(+), 28 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index e04b621..9367ac7 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -7,31 +7,9 @@ name: Build and Push Docker image - main jobs: - build-and-push: - runs-on: ubuntu-latest - - steps: - - name: Check out the repo - uses: actions/checkout@v2 - - - name: Log in to GitHub Container Registry - run: > - echo "${{ secrets.GITHUB_TOKEN }}" - | docker login ghcr.io -u ${{ github.actor }} --password-stdin - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Build and push Docker image - uses: docker/build-push-action@v3 - with: - context: . - push: true - tags: ghcr.io/${{ github.repository }}:latest - - - name: Log out from GitHub Container Registry - if: always() - run: docker logout ghcr.io + build: + name: Build and push docker image + uses: ls1intum/.github/.github/workflows/build-and-push-docker-image.yml@main + with: + image-name: ghcr.io/ls1intum/storage-benchmarking + docker-file: ./Dockerfile