Skip to content

QOL and Platform

QOL and Platform #43

# Generated by cdkactions. Do not modify
# Generated as part of the 'datadog-agent' stack.
name: Publish datadog-agent
on:
push:
paths:
- docker/datadog-agent/**
jobs:
publish-datadog-agent:
name: Publish datadog-agent
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: buildx-publish-datadog-agent
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build/Publish
uses: docker/build-push-action@v2
with:
context: docker/datadog-agent
file: docker/datadog-agent/Dockerfile
push: ${{ github.ref == 'refs/heads/master' }}
cache-from: type=local,src=/tmp/.buildx-cache,type=registry,ref=pennlabs/datadog-agent:latest
cache-to: type=local,dest=/tmp/.buildx-cache
tags: pennlabs/datadog-agent:latest,pennlabs/datadog-agent:${{ github.sha }}