Skip to content

Merge pull request #9 from DataDog/emilehugo.spir/bump-dd-trace #5

Merge pull request #9 from DataDog/emilehugo.spir/bump-dd-trace

Merge pull request #9 from DataDog/emilehugo.spir/bump-dd-trace #5

Workflow file for this run

name: Release docker image
on:
push:
tags:
- "*"
env:
REGISTRY: ghcr.io
IMAGE_NAME: datadog/juice-shop
permissions:
contents: read
jobs:
docker-build-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
push: true
build-args: |
VERSION=${{ github.ref_name }}
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest