Skip to content

Commit 9132382

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

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/build.yml

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

0 commit comments

Comments
 (0)