Skip to content

Commit 877fd76

Browse files
authored
Add github action to build Docker image
1 parent 37a00ac commit 877fd76

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/docker-build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
tags:
7+
- v**
8+
9+
jobs:
10+
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
- name: DOcker meta
19+
uses: docker/metadata-action@v5
20+
with:
21+
images: tls-attacker/anvil-web
22+
- name: Build and push
23+
uses: docker/build-push-action@v5
24+
with:
25+
context: .
26+
push: false
27+
tags: ${{ steps.meta.outputs.tags }}
28+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)