Skip to content

Commit 195ad1a

Browse files
committed
updated our use of the meta action
1 parent 1a27895 commit 195ad1a

1 file changed

Lines changed: 18 additions & 10 deletions

File tree

.github/workflows/docker.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,33 @@ jobs:
1212
-
1313
name: Checkout
1414
uses: actions/checkout@v4
15+
-
16+
name: Set up QEMU
17+
uses: docker/setup-qemu-action@v3
18+
with:
19+
platforms: linux/amd64,linux/arm64
20+
-
21+
name: Set up Docker Buildx
22+
id: buildx
23+
uses: docker/setup-buildx-action@v3
24+
with:
25+
install: true
26+
driver-opts: network=host
1527
-
1628
name: Docker meta
1729
id: meta
1830
uses: docker/metadata-action@v5
1931
with:
2032
images: owaspamass/amass
2133
tags: |
34+
type=ref,event=latest
2235
type=semver,pattern=v{{major}}
2336
type=semver,pattern=v{{major}}.{{minor}}
2437
type=semver,pattern=v{{major}}.{{minor}}.{{patch}}
25-
-
26-
name: Set up QEMU
27-
uses: docker/setup-qemu-action@v3
28-
with:
29-
platforms: linux/amd64,linux/arm64
30-
-
31-
name: Set up Docker Buildx
32-
id: buildx
33-
uses: docker/setup-buildx-action@v3
38+
labels: |
39+
org.opencontainers.image.title=OWASP Amass
40+
org.opencontainers.image.description=In-depth attack surface mapping and asset discovery
41+
org.opencontainers.image.vendor=OWASP Foundation
3442
-
3543
name: Login to DockerHub
3644
uses: docker/login-action@v3
@@ -41,7 +49,7 @@ jobs:
4149
name: Build and push
4250
uses: docker/build-push-action@v6
4351
with:
44-
context: ./
52+
context: .
4553
file: ./Dockerfile
4654
builder: ${{ steps.buildx.outputs.name }}
4755
platforms: linux/amd64,linux/arm64

0 commit comments

Comments
 (0)