Skip to content

Commit

Permalink
Add workflows for attackbox (#166)
Browse files Browse the repository at this point in the history
* add workflows

* keep build context
  • Loading branch information
stanleegoodspeed committed Oct 4, 2021
1 parent 8e4cc6e commit d4023b6
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/attackbox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Attackbox Test and Build

on:
push:
branches: [ main ]
paths:
- attack-box/**
workflow_dispatch:
branches: [ main ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
context: ./attack-box
platforms: linux/amd64
push: true
tags: ddtraining/attackbox:latest
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,5 @@ jobs:
docker pull ddtraining/storefront-fixed:latest
docker tag ddtraining/storefront-fixed:latest ddtraining/storefront-fixed:${{ github.event.ref }}
docker push ddtraining/storefront-fixed:${{ github.event.ref }}
docker pull ddtraining/attackbox:latest
docker tag ddtraining/attackbox:latest ddtraining/attackbox:${{ github.event.ref }}

0 comments on commit d4023b6

Please sign in to comment.