Skip to content

Update nginx for handling unrestricted file upload (#99) #112

Update nginx for handling unrestricted file upload (#99)

Update nginx for handling unrestricted file upload (#99) #112

Workflow file for this run

# This workflow will build a Java project with Gradle and push a new docker image to docker hub
name: Build and Push Image to DockerHub
on:
push:
branches: [ main ]
jobs:
login:
runs-on: ubuntu-latest
steps:
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Checkout new changes
uses: actions/checkout@v2
with:
java-version: 1.8
fetch-depth: 0
-
name: Setup GitVersion action
uses: gittools/actions/gitversion/setup@v0.9.7
with:
versionSpec: '5.x'
-
name: Execute GitVersion action
id: gitversion
uses: gittools/actions/gitversion/execute@v0.9.7
-
name: Create tag for repo
uses: tvdias/github-tagger@v0.0.1
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
tag: '${{ steps.gitversion.outputs.semver }}'
- name: Set up QEMU
uses: docker/setup-qemu-action@master
with:
platforms: all
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Push docker images
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
push: true
platforms: linux/amd64,linux/arm64/v8
tags: |
sasanlabs/owasp-vulnerableapp-facade:unreleased
sasanlabs/owasp-vulnerableapp-facade:${{ steps.gitversion.outputs.semver }}