forked from apache/superset
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (60 loc) · 1.97 KB
/
build_beta.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
name: Beta Superset Build/Deploy
on:
push:
branches:
- beta-*
jobs:
build-beta:
name: Beta Deployment
runs-on: ubuntu-latest
steps:
- name: Ensure python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Checkout code
uses: actions/checkout@v4
- name: Create tag
id: docker_tag
run: |
echo "tag=${{ github.ref_name }}-${{ github.run_number }}" >> $GITHUB_OUTPUT
- name: Verify tag
run: echo ${{ steps.docker_tag.outputs.tag }}
- name: Login to GCR
uses: docker/login-action@v3
with:
registry: us-docker.pkg.dev
username: _json_key
password: ${{ secrets.GCR_JSON_KEY }}
- name: Build superset and push
id: docker_build
uses: docker/build-push-action@v5
with:
push: true
pull: true
no-cache: true
build-args: |
PLAID_BUILD_TAG:${{ steps.docker_tag.outputs.tag }}
tags: us-docker.pkg.dev/plaidcloud-build/us-plaidcloud/superset:latest,us-docker.pkg.dev/plaidcloud-build/us-plaidcloud/superset:${{ steps.docker_tag.outputs.tag }}
- name: Checkout GitOps Repository
uses: actions/checkout@v4
with:
repository: PlaidCloud/plaid-tenant-infrastructure
ref: beta
fetch-depth: '1'
path: infrastructure
token: ${{ secrets.GITOPS_REPO_ACCESS }}
- name: Update & Tenant Image
uses: fjogeleit/yaml-update-action@main
with:
repository: PlaidCloud/plaid-tenant-infrastructure
branch: beta
message: 'Update Superset Image to ${{ steps.docker_tag.outputs.tag }}'
token: ${{ secrets.GITOPS_REPO_ACCESS }}
workDir: infrastructure
changes: |
{
"tenants/values.yaml": {
"superset.image.tag": "${{ steps.docker_tag.outputs.tag }}"
}
}