Skip to content

Update WebGoat.NET.csproj to .NET 8 #40

Update WebGoat.NET.csproj to .NET 8

Update WebGoat.NET.csproj to .NET 8 #40

Workflow file for this run

name: build .NET 7
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
env:
IMAGE_NAME: ghcr.io/${{ github.repository }}
PUBLISH: ${{ github.ref == 'refs/heads/master' }}
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v2
id: buildx
with:
install: true
version: latest
- uses: docker/login-action@v2
if: ${{ env.PUBLISH }}
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.IMAGE_NAME }}
tags: |
type=sha
type=edge
type=raw,value=latest,enable={{is_default_branch}}
- uses: docker/build-push-action@v3
id: build
with:
file: Dockerfile
context: .
push: ${{ env.PUBLISH }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}