-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (34 loc) · 927 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: CI
on:
push:
branches:
- main
# These permissions are needed to assume roles from Github's OIDC.
permissions:
contents: read
id-token: write
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: '>=1.22.4'
- name: Check out code
uses: actions/checkout@v4
- name: Image tag
id: image-tag
run: echo "version=$(./tools/image-tag)" >> $GITHUB_OUTPUT
- name: Build and push to Docker Hub
uses: grafana/shared-workflows/actions/push-to-gar-docker@main
id: push-to-gar
with:
platforms: linux/amd64,linux/arm64
file: ./ai-training-api/Dockerfile
tags: |
"${{ steps.image-tag.outputs.version }}"
"latest"
image_name: "ai-training-api"
environment: "dev"