Skip to content

fix(gke): Update collect method to gracefully fail (#336) #198

fix(gke): Update collect method to gracefully fail (#336)

fix(gke): Update collect method to gracefully fail (#336) #198

Workflow file for this run

# See https://docs.docker.com/build/ci/github-actions/multi-platform/
name: Build and Push Image
on:
push:
branches:
- main
tags:
- v*
permissions:
contents: read
id-token: write
env:
REGISTRY_IMAGE: grafana/cloudcost-exporter
# Docker image tags. See https://github.com/docker/metadata-action for format
TAGS_CONFIG: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
type=sha,prefix={{ branch }}-,format=short,enable=${{ github.ref == 'refs/heads/main' }}
type=semver,pattern={{ version }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and push
uses: grafana/shared-workflows/actions/build-push-to-dockerhub@main
with:
repository: ${{ env.REGISTRY_IMAGE }}
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ env.TAGS_CONFIG }}