Skip to content

chore: build and push docker image using github actions #4

chore: build and push docker image using github actions

chore: build and push docker image using github actions #4

Workflow file for this run

name: "build-push"
on:
push:
branches:
- main
pull_request:
env:
GO_VERSION: 1.21.8
permissions:
contents: read
id-token: write
jobs:
build-push:
runs-on: ubuntu-latest
steps:
- id: checkout
uses: actions/checkout@v4
- id: generate-tag
run: |
bash scripts/generate-tags.sh > .tag
- id: build-and-push
uses: grafana/shared-workflows/actions/push-to-gar-docker@main
with:
push: true
registry: "us-docker.pkg.dev/grafanalabs-dev/docker-influx2cortex-dev"
tags: |-
"test-tag"
"latest"
context: "."
image_name: "influx2cortex"
environment: "dev"