consistently call embedded-cluster controller nodes 'controller' (#4110) #886
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
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@v3 | |
- 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] }}"]}]}' |