Skip to content

Merge pull request #67 from debricked/add-path-to-caller #98

Merge pull request #67 from debricked/add-path-to-caller

Merge pull request #67 from debricked/add-path-to-caller #98

Workflow file for this run

name: Build and push Docker images
on: [push]
jobs:
docker-maven:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Get identifier
run: echo "IDENTIFIER=${GITHUB_REF##*/}" >> $GITHUB_ENV
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: java/maven/Dockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/debricked/vulnerable-functionality-maven:${{ env.IDENTIFIER }}
debricked/vulnerable-functionality-maven:${{ env.IDENTIFIER }}
docker-gradle:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Get identifier
run: echo "IDENTIFIER=${GITHUB_REF##*/}" >> $GITHUB_ENV
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: java/gradle/Dockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/debricked/vulnerable-functionality-gradle:${{ env.IDENTIFIER }}
debricked/vulnerable-functionality-gradle:${{ env.IDENTIFIER }}
docker-java:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Get identifier
run: echo "IDENTIFIER=${GITHUB_REF##*/}" >> $GITHUB_ENV
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: java/Dockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/debricked/vulnerable-functionality-java:${{ env.IDENTIFIER }}
debricked/vulnerable-functionality-java:${{ env.IDENTIFIER }}