Skip to content

Commit

Permalink
PA-6990 Modify workflows (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
SOOS-JAlvarez committed Nov 2, 2022
1 parent 4742328 commit 790a122
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 8 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/soos-dast-docker-image-alpha.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Push Docker Container Alpha

on:
push:
branches:
- 'main'

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: soosio/dast
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v2
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: soosio/dast:alpha
labels: ${{ steps.meta.outputs.labels }}
31 changes: 31 additions & 0 deletions .github/workflows/soos-dast-docker-image-beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Push Docker Container Beta

on:
push:
tags:
- "v*"

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: soosio/dast
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v2
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: soosio/dast:beta
labels: ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: Push Docker Container
name: Push Docker Container Latest

on:
push:
branches:
- 'main'
tags:
- 'v*'
release:
types: [published]

jobs:
docker:
Expand All @@ -29,7 +26,7 @@ jobs:
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: soosio/dast:alpha
tags: soosio/dast:latest
labels: ${{ steps.meta.outputs.labels }}
- name: Update Docker Hub Description
uses: peter-evans/dockerhub-description@v3
Expand All @@ -38,4 +35,4 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: soosio/dast
short-description: SOOS DAST - The affordable no limit web vulnerability scanner.
readme-filepath: ./README.md
readme-filepath: ./README.md

0 comments on commit 790a122

Please sign in to comment.