Skip to content

Commit

Permalink
Use Github Groups template action for building Docker
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Wilk <colin.wilk@tum.de>
  • Loading branch information
kliwniloc committed Jun 25, 2024
1 parent 946cca6 commit 17a3e8c
Showing 1 changed file with 6 additions and 28 deletions.
34 changes: 6 additions & 28 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 17a3e8c

Please sign in to comment.