Skip to content

Merge pull request #9 from DataDog/file-read-vuln #16

Merge pull request #9 from DataDog/file-read-vuln

Merge pull request #9 from DataDog/file-read-vuln #16

Workflow file for this run

name: docker
on:
push:
branches:
- main
paths-ignore:
- 'README.md'
permissions:
contents: read
packages: write
env:
REGISTRY: ghcr.io
IMAGE_NAME: datadog/vulnerable-java-application
jobs:
docker-build-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest