Skip to content

Merge pull request #8 from christophetd/java-21-upgrade #15

Merge pull request #8 from christophetd/java-21-upgrade

Merge pull request #8 from christophetd/java-21-upgrade #15

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