-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: build and push docker image using github actions
- Loading branch information
1 parent
ec431ff
commit 2b98cee
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: "build-push" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
env: | ||
GO_VERSION: 1.21.8 | ||
|
||
jobs: | ||
acceptance: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: checkout | ||
uses: actions/checkout@v4 | ||
- id: generate-tag | ||
run: | | ||
bash scripts/generate-tags.sh > .tag | ||
- id: push-to-gar | ||
uses: grafana/shared-workflows/actions/push-to-gar-docker@main | ||
with: | ||
registry: "us-docker.pkg.dev/grafanalabs-dev/docker-influx2cortex-dev" | ||
tags: |- | ||
"test-tag" | ||
"latest" | ||
context: "." | ||
image_name: "influx2cortex" | ||
environment: "dev" |