Skip to content

Commit 6ea337c

Browse files
committed
Add GitHub workflow to build docker image
1 parent 21a6e5e commit 6ea337c

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build Workflow
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
docker:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- uses: docker/setup-buildx-action@v3
13+
name: Set up Docker Buildx
14+
15+
- uses: docker/login-action@v3
16+
name: Login to DockerHub
17+
with:
18+
username: ${{ secrets.DOCKERHUB_USERNAME }}
19+
password: ${{ secrets.DOCKERHUB_TOKEN }}
20+
21+
- uses: docker/build-push-action@v6
22+
name: Build and Push WebApp Image
23+
id: docker_build
24+
with:
25+
context: .
26+
push: true
27+
tags: orgsinfo/webapp2:${{ github.ref_name }}
28+
29+
- name: WebApp Image Digest
30+
run: echo ${{ steps.docker_build.outputs.digest }}

0 commit comments

Comments
 (0)