This repository was archived by the owner on Jan 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ name : Container
3+
4+ on :
5+ workflow_dispatch :
6+ push :
7+ branches :
8+ - main
9+ tags :
10+ - " *"
11+
12+ jobs :
13+ build-and-push :
14+ name : Build and push
15+ runs-on : ubuntu-latest
16+ defaults :
17+ run :
18+ shell : bash
19+ steps :
20+ - name : Checkout
21+ uses : actions/checkout@v2
22+ with :
23+ fetch-depth : 0
24+
25+ - name : Set image tag
26+ id : tag
27+ run : |
28+ if [[ $GITHUB_REF == refs/tags/* ]]; then
29+ IMAGE_TAG="${GITHUB_REF:10}"
30+ elif [[ $GITHUB_REF == refs/heads/main ]]; then
31+ IMAGE_TAG="latest"
32+ else
33+ IMAGE_TAG="${GITHUB_REF:11}"
34+ fi
35+ IMAGE_TAG="ghcr.io/${{ github.repository }}:${IMAGE_TAG}"
36+ echo ::set-output name=tag::${IMAGE_TAG,,}
37+ - name : Set up QEMU
38+ uses : docker/setup-qemu-action@v1
39+
40+ - name : Set up Buildx
41+ uses : docker/setup-buildx-action@v1
42+
43+ - name : Login to GHCR
44+ uses : docker/login-action@v1
45+ with :
46+ registry : ghcr.io
47+ username : ${{ github.repository_owner }}
48+ password : ${{ secrets.PAT }}
49+
50+ - name : Build and push image
51+ if : github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
52+ id : docker_build
53+ uses : docker/build-push-action@v2
54+ with :
55+ push : true
56+ context : .
57+ file : ./Dockerfile
58+ platforms : linux/amd64
59+ tags : ${{ steps.tag.outputs.tag }}
Original file line number Diff line number Diff line change 1+ FROM gcr.io/datadoghq/agent:latest
2+ RUN agent integration install -r -t datadog-cert_manager==2.0.0
Original file line number Diff line number Diff line change 1+ # datadog-agent
2+ DataDog agent with changes for ArchitectSMP
You can’t perform that action at this time.
0 commit comments