-
Notifications
You must be signed in to change notification settings - Fork 486
57 lines (49 loc) · 2.07 KB
/
antithesis.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: Nightly Job
on:
schedule:
- cron: '0 0 * * *' # Runs nightly at midnight UTC
workflow_dispatch: # Allows manual triggering
jobs:
nightly-run:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Read version and generate commit hash
id: versioning
run: |
VERSION=$(cat VERSION)
COMMIT_HASH=$(git rev-parse --short HEAD) # Get short commit hash
FULL_VERSION="${VERSION}-${COMMIT_HASH}"
echo "Generated version: $FULL_VERSION"
echo "IMAGE_TAG=$FULL_VERSION" >> $GITHUB_ENV
- name: Authenticate with Google Cloud
run: |
echo '${{ secrets.ANTITHESIS_SERVICE_ACCOUNT_KEY }}' | jq '.' > /tmp/key.json
gcloud auth activate-service-account --key-file=/tmp/key.json
gcloud auth configure-docker us-central1-docker.pkg.dev
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: us-central1-docker.pkg.dev/molten-verve-216720/dominant-repository/go-quai:${{ env.IMAGE_TAG }}
cache-to: type=inline
- name: Run Antithesis Test
uses: antithesishq/[email protected]
with:
notebook_name: dominant
tenant: dominantstrategies
username: ${{ secrets.ANTITHESIS_USER_NAME }}
password: ${{ secrets.ANTITHESIS_PASSWORD }}
github_token: ${{ secrets.GH_PAT_ANTITHESIS }}
images: "go-quai:${{ env.IMAGE_TAG }};quai-cpu-miner:latest;quai-workload:latest;quai-statistics-backend:latest;elasticsearch:8.8.0;logstash:8.8.0;kibana:8.8.0;redis:6.2-alpine"
config_image: "qc-config:0.1.0-single.6"
description: "nightly go-quai test"
email_recipients: ${{ secrets.ANTITHESIS_EMAILS }}"
additional_parameters: |-
custom.duration=1