Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit d4023b6

Browse files
Add workflows for attackbox (#166)
* add workflows * keep build context
1 parent 8e4cc6e commit d4023b6

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/attackbox.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Attackbox Test and Build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- attack-box/**
8+
workflow_dispatch:
9+
branches: [ main ]
10+
11+
jobs:
12+
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout Code
19+
uses: actions/checkout@v2
20+
with:
21+
fetch-depth: 0
22+
- name: Set up QEMU
23+
uses: docker/setup-qemu-action@v1
24+
- name: Setup Docker Buildx
25+
uses: docker/setup-buildx-action@v1
26+
- name: Login to Docker Hub
27+
uses: docker/login-action@v1
28+
with:
29+
username: ${{ secrets.DOCKERHUB_USERNAME }}
30+
password: ${{ secrets.DOCKERHUB_TOKEN }}
31+
- name: Build and Push Docker Image
32+
uses: docker/build-push-action@v2
33+
with:
34+
context: ./attack-box
35+
platforms: linux/amd64
36+
push: true
37+
tags: ddtraining/attackbox:latest

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,5 @@ jobs:
5454
docker pull ddtraining/storefront-fixed:latest
5555
docker tag ddtraining/storefront-fixed:latest ddtraining/storefront-fixed:${{ github.event.ref }}
5656
docker push ddtraining/storefront-fixed:${{ github.event.ref }}
57+
docker pull ddtraining/attackbox:latest
58+
docker tag ddtraining/attackbox:latest ddtraining/attackbox:${{ github.event.ref }}

0 commit comments

Comments
 (0)