Skip to content

Commit 17a3e8c

Browse files
committed
Use Github Groups template action for building Docker
Signed-off-by: Colin Wilk <[email protected]>
1 parent 946cca6 commit 17a3e8c

File tree

1 file changed

+6
-28
lines changed

1 file changed

+6
-28
lines changed

.github/workflows/docker-publish.yml

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,9 @@ name: Build and Push Docker image
77
- main
88

99
jobs:
10-
build-and-push:
11-
runs-on: ubuntu-latest
12-
13-
steps:
14-
- name: Check out the repo
15-
uses: actions/checkout@v2
16-
17-
- name: Log in to GitHub Container Registry
18-
run: >
19-
echo "${{ secrets.GITHUB_TOKEN }}"
20-
| docker login ghcr.io -u ${{ github.actor }} --password-stdin
21-
22-
- name: Set up QEMU
23-
uses: docker/setup-qemu-action@v2
24-
25-
- name: Set up Docker Buildx
26-
uses: docker/setup-buildx-action@v2
27-
28-
- name: Build and push Docker image
29-
uses: docker/build-push-action@v3
30-
with:
31-
context: .
32-
push: true
33-
tags: ghcr.io/${{ github.repository }}:latest
34-
35-
- name: Log out from GitHub Container Registry
36-
if: always()
37-
run: docker logout ghcr.io
10+
build:
11+
name: Build and push docker image
12+
uses: ls1intum/.github/.github/workflows/build-and-push-docker-image.yml@main
13+
with:
14+
image-name: ghcr.io/ls1intum/storage-benchmarking
15+
docker-file: ./Dockerfile

0 commit comments

Comments
 (0)