Repository navigation
89 lines (80 loc) · 2.48 KB
/
Copy pathrelease.yaml
File metadata and controls
89 lines (80 loc) · 2.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Release on GitHub
## Run only when we push a tag. See "how_to_release.md" instructions
on:
push:
tags:
- "v*"
jobs:
publish-docker-jacoco:
runs-on: ubuntu-latest
steps:
- name: Checkout WFD
uses: actions/checkout@v6
- name: Build All With Docker
run: python scripts/dist.py
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: webfuzzing/wfd-jacoco
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Build and push Docker
uses: docker/build-push-action@v5
with:
file: jacoco.dockerfile
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
publish-docker-wfd:
# jacoco.dockerfile requires building WFD, whereas wfd.dockerfile only needs static files.
# As such, we don't build it if former fails
needs: publish-docker-jacoco
runs-on: ubuntu-latest
steps:
# Only check-out, do not build
- name: Checkout WFD
uses: actions/checkout@v6
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: webfuzzing/wfd
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Build and push Docker
uses: docker/build-push-action@v5
with:
file: wfd.dockerfile
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tagged-release:
name: "Tagged Release"
runs-on: "ubuntu-latest"
needs: [publish-docker-jacoco, publish-docker-wfd]
steps:
- name: Release
uses: softprops/action-gh-release@v1
with:
body: "See README.md"
prerelease: false
draft: false