Skip to content

Commit 28c7f96

Browse files
committed
Enhance GitHub Actions workflow by adding a build and push step for Docker images, utilizing the docker/build-push-action for streamlined image creation and tagging.
1 parent 18b7179 commit 28c7f96

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,12 @@ jobs:
9292
type=sha,format=long
9393
type=sha,prefix={{branch}}-,enable=${{ !startsWith(github.ref, 'refs/tags') }},event=branch
9494
type=sha,format=long,prefix={{branch}}-,enable=${{ !startsWith(github.ref, 'refs/tags') }},event=branch
95+
96+
- name: Build and push
97+
uses: docker/build-push-action@v4
98+
with:
99+
context: .
100+
file: Dockerfile
101+
push: true
102+
tags: |
103+
${{ steps.meta.outputs.tags }}

0 commit comments

Comments
 (0)