Skip to content

Receiver TLS blocks are blocks, not attributes (#738) #299

Receiver TLS blocks are blocks, not attributes (#738)

Receiver TLS blocks are blocks, not attributes (#738) #299

---
name: Build and Push Test Image
# yamllint disable-line rule:truthy
on:
push:
branches: [main]
permissions:
packages: write
jobs:
build-and-push-test-image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Get Version
id: get-version
run: |
version=$(yq -r '.version' "${GITHUB_WORKSPACE}/charts/k8s-monitoring/Chart.yaml")
echo "version=${version}" >> "${GITHUB_OUTPUT}"
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/grafana/k8s-monitoring-test
tags: |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=raw,value=${{ steps.get-version.outputs.version }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: charts/k8s-monitoring/test
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}