Skip to content

Erez/gc 2107 return empty map on error from monitors manager (#43) #29

Erez/gc 2107 return empty map on error from monitors manager (#43)

Erez/gc 2107 return empty map on error from monitors manager (#43) #29

Workflow file for this run

name: release
on:
push:
tags:
- 'v*.*.*'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
-
name: Checkout
uses: actions/checkout@v3
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Quay.io
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
-
name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::125608480246:role/grafana-github-actions
-
name: Login to Amazon ECR Public
id: login-ecr-public
uses: aws-actions/amazon-ecr-login@v2
with:
registry-type: public
-
name: Get Grafana Version
run: echo "GF_VERSION=$(npm pkg get version | tr -d '"')" >> $GITHUB_ENV
-
name: Build Docker Image
uses: docker/build-push-action@v5
with:
context: .
push: true
target: groundcover
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64
build-args: GF_VERSION=${{ env.GF_VERSION }}
tags: |
quay.io/groundcover/grafana-groundcover:${{ github.ref_name }}-grafana${{ env.GF_VERSION }}
public.ecr.aws/groundcovercom/grafana-groundcover:${{ github.ref_name }}-grafana${{ env.GF_VERSION }}