Skip to content

build kotsadm-migrations, rqlite, minio, and dex with apko and melang… #939

build kotsadm-migrations, rqlite, minio, and dex with apko and melang…

build kotsadm-migrations, rqlite, minio, and dex with apko and melang… #939

Workflow file for this run

on:
push:
branches:
- main
name: Metrics
env:
DOCKER_BUILDKIT: 1
jobs:
docker-image-size:
runs-on: ubuntu-latest
strategy:
matrix:
service: [[kots, deploy/okteto, .], [web, web, web], [kurl-proxy, kurl_proxy, kurl_proxy], [migrations, migrations, migrations]]
steps:
- uses: actions/checkout@v4
- run: |
docker build -t ${{ matrix.service[0] }} -f ${{ matrix.service[1] }}/okteto.Dockerfile ${{ matrix.service[2] }}/
curl -X POST "https://api.datadoghq.com/api/v1/series" \
-H "Content-Type: text/json" \
-H "DD-API-KEY: ${{secrets.DD_API_KEY}}" \
-d '{"series":[{"metric":"build.size.docker","points":[['"$(date +%s)"','"$(docker inspect -f "{{.Size}}" ${{ matrix.service[0] }})"']],"tags":["service:${{ matrix.service[0] }}"]}]}'