Skip to content

Merge pull request #441 from DataDog/dependabot/pip/prettytable-3.11.0 #68

Merge pull request #441 from DataDog/dependabot/pip/prettytable-3.11.0

Merge pull request #441 from DataDog/dependabot/pip/prettytable-3.11.0 #68

Workflow file for this run

name: Release docker image
on:
push:
tags:
- "*"
env:
REGISTRY: ghcr.io
IMAGE_NAME: datadog/guarddog
permissions:
contents: read
jobs:
docker-build-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
push: true
build-args: |
VERSION=${{ github.ref_name }}
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest