-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (51 loc) · 1.35 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: CI
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize]
permissions:
id-token: write
checks: write
pull-requests: write
contents: write
jobs:
ci:
uses: SolaceDev/solace-public-workflows/.github/workflows/hatch_ci.yml@main
with:
min-python-version: "3.10"
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}
structure-test:
name: Test Docker Image Structure
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: ${{ secrets.COMMIT_KEY }}
- name: Set up Hatch
uses: SolaceDev/solace-public-workflows/.github/actions/hatch-setup@main
with:
min-python-version: "3.10"
- name: Set Up Docker Buildx
id: builder
uses: docker/setup-buildx-action@v3
- name: Prepare env file
run: |
cp .env_template .env
- name: Build Docker Image
uses: docker/build-push-action@v6
with:
push: false
tags: solace/solace-ai-connector:local
platforms: linux/amd64
builder: ${{ steps.builder.outputs.name }}
load: true
- name: Run Structure Tests
shell: bash
run: |
hatch run make structure-test