Add Full install, exporters, and alerting docs #17
Workflow file for this run
This file contains hidden or 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: ci-build | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| tags: | |
| - 'v*.*.*' # e.g., v0.1.1 | |
| jobs: | |
| docker: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: # This should be replaced with Docker Bake instead | |
| include: | |
| - name: prometheus | |
| context: observability/prometheus | |
| dockerfile: observability/prometheus/Dockerfile.prometheus | |
| image: cogstacksystems/cogstack-observability-prometheus | |
| - name: blackbox | |
| context: observability/prometheus | |
| dockerfile: observability/prometheus/Dockerfile.blackbox | |
| image: cogstacksystems/cogstack-observability-blackbox-exporter | |
| - name: grafana | |
| context: observability/grafana | |
| dockerfile: observability/grafana/Dockerfile | |
| image: cogstacksystems/cogstack-observability-grafana | |
| - name: traefik | |
| context: observability/traefik | |
| dockerfile: observability/traefik/Dockerfile | |
| image: cogstacksystems/cogstack-observability-traefik | |
| steps: | |
| - name: Checkout branch | |
| uses: actions/checkout@v4 | |
| - name: Login to DockerHub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Extract metadata (tags, labels) for Docker | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ${{ matrix.image }} | |
| tags: | | |
| # set latest tag for default branch | |
| type=raw,value=latest,enable={{is_default_branch}} | |
| # Include all default tags | |
| type=schedule | |
| type=ref,event=branch | |
| type=ref,event=tag | |
| type=ref,event=pr | |
| type=sha | |
| - name: Build and push Docker image | |
| id: push | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: ${{ matrix.context }} | |
| file: ${{ matrix.dockerfile }} | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} |