Update docs/analysis/datadog.md #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Argo Rollouts Fork CI | |
on: | |
workflow_call: | |
push: | |
branches: [ "*", "**/*" ] | |
tags: [ "*" ] | |
jobs: | |
buildImages: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '^1.21' | |
- name: Set up Docker context for Buildx | |
id: buildx-context | |
run: | | |
docker context create builders | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
with: | |
version: latest | |
endpoint: builders | |
- name: Login to Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build images | |
id: buildimages | |
run: | | |
img=ghcr.io/${{github.repository}}:${{github.sha}} | |
echo "IMAGE_NAME=${img}" >> ${GITHUB_OUTPUT} | |
docker pull ${img} || ( | |
docker buildx build --push --cache-to type=gha,mode=max --cache-from type=gha --progress plain --platform linux/arm64/v8,linux/amd64 --build-arg BUILDKIT_INLINE_CACHE=1 -t ${img} . | |
) | |
- name: Build main image images | |
id: buildmainimage | |
if: ${{ github.ref == 'refs/heads/master' && github.event_name != 'pull_request' }} | |
run: | | |
img=ghcr.io/${{github.repository}}:latest | |
docker buildx build --push --cache-to type=gha,mode=max --cache-from type=gha --progress plain --platform linux/arm64/v8,linux/amd64 --build-arg BUILDKIT_INLINE_CACHE=1 -t ${img} . |