Skip to content

feat(ec2): Add architecture label (#361) #221

feat(ec2): Add architecture label (#361)

feat(ec2): Add architecture label (#361) #221

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- 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 }}