-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (65 loc) · 1.82 KB
/
build.yaml
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
58
59
60
61
62
63
64
65
66
name: Build
on:
push:
branches:
- "main"
- "rel/*"
- "agr22/DBAAS-458"
jobs:
publish_docker_image:
name: Publish Docker Image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build Image
run: |
make build-image
- name: Setup Integration Test Environment
run: |
make setup-integration-tests
- name: Run Integration Tests
run: |
make run-integration-tests-only
- name: Teardown Integration Test Environment
if: success() || failure()
run: |
make teardown-integration-tests
- name: 'Login to GHCR'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Deploy Docker image to GHCR
run: |
./build_utils.sh uploadDockerImage
- name: Upload Test Results
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: test-results
path: selenium-tests/target/test-results
retention-days: 7
publish_helm_chart:
name: Publish Helm Chart
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v4
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Create Helm Package
run: |
./build_utils.sh createHelmPackage
- name: Upload package to Helm Index
run: |
./build_utils.sh uploadHelmPackage