Skip to content

Commit cf66b6e

Browse files
helm charts for open taco, ui adjustment for deploy (#2326)
* working helm chart, de-netifly ui * remove helm archives * add placeholder files * enable custom env setting for tests * release adjustments * edit release workflows and remove dead code * update image values * remove stripe, hardcoded cloud sql instance id * remove build file * make better notes of place holder values * address lint errors * address comments * update readme * add umbrella chart to the workflow as well * add back backend chart from ddevelop, adjust values * update to values style, adjust some envs * rename digger-drift to taco-drift, rename digger-managed to taco-orchestrator --------- Co-authored-by: Mohamed Habib <moe.habib9@gmail.com>
1 parent f06aa56 commit cf66b6e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+3289
-195
lines changed

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,8 @@ libs/digger_config/**/.idea
6161

6262
# flyctl launch added from libs/orchestrator/.gitignore
6363
libs/orchestrator/**/.idea
64+
65+
# Don't copy node_modules - we install fresh in the container
66+
ui/node_modules
67+
ui/dist
68+
ui/.next
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: Backend EE Docker Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'backend-ee/v*'
7+
8+
permissions:
9+
contents: write
10+
packages: write
11+
12+
env:
13+
REGISTRY: ghcr.io
14+
IMAGE_NAME: ${{ github.repository }}/digger-backend-ee
15+
16+
jobs:
17+
build-and-push:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Derive version
25+
id: meta
26+
run: |
27+
TAG="${GITHUB_REF_NAME}" # e.g. backend-ee/v1.2.3
28+
VERSION="${TAG##*/}" # v1.2.3
29+
echo "version=$VERSION" >> $GITHUB_OUTPUT
30+
31+
- name: Set up Docker Buildx
32+
uses: docker/setup-buildx-action@v3
33+
34+
- name: Log in to Container Registry
35+
uses: docker/login-action@v3
36+
with:
37+
registry: ${{ env.REGISTRY }}
38+
username: ${{ github.actor }}
39+
password: ${{ secrets.GITHUB_TOKEN }}
40+
41+
- name: Extract metadata
42+
id: docker-meta
43+
uses: docker/metadata-action@v5
44+
with:
45+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
46+
tags: |
47+
type=raw,value=${{ steps.meta.outputs.version }}
48+
type=ref,event=tag
49+
type=raw,value=latest
50+
51+
- name: Build and push Docker image
52+
uses: docker/build-push-action@v5
53+
with:
54+
context: .
55+
file: ./Dockerfile_backend_ee
56+
push: true
57+
platforms: linux/amd64,linux/arm64
58+
tags: ${{ steps.docker-meta.outputs.tags }}
59+
labels: ${{ steps.docker-meta.outputs.labels }}
60+
build-args: |
61+
COMMIT_SHA=${{ github.sha }}
62+
VERSION=${{ steps.meta.outputs.version }}
63+
64+
create-release:
65+
needs: [build-and-push]
66+
runs-on: ubuntu-latest
67+
steps:
68+
- uses: actions/checkout@v4
69+
with:
70+
fetch-depth: 0
71+
72+
- name: Derive version
73+
id: meta
74+
run: |
75+
TAG="${GITHUB_REF_NAME}" # e.g. backend-ee/v1.2.3
76+
VERSION="${TAG##*/}" # v1.2.3
77+
echo "version=$VERSION" >> $GITHUB_OUTPUT
78+
79+
- name: Create GitHub Release
80+
uses: softprops/action-gh-release@v1
81+
with:
82+
tag_name: ${{ github.ref_name }}
83+
name: Digger Backend EE ${{ steps.meta.outputs.version }}
84+
body: |
85+
## Digger Backend (Enterprise Edition) ${{ steps.meta.outputs.version }}
86+
87+
Terraform orchestration service with advanced features and multi-VCS support.
88+
89+
### Docker Image
90+
```bash
91+
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }}
92+
```
93+
94+
draft: false
95+
prerelease: false
96+
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: Drift Docker Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'drift/v*'
7+
8+
permissions:
9+
contents: write
10+
packages: write
11+
12+
env:
13+
REGISTRY: ghcr.io
14+
IMAGE_NAME: ${{ github.repository }}/drift
15+
16+
jobs:
17+
build-and-push:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Derive version
25+
id: meta
26+
run: |
27+
TAG="${GITHUB_REF_NAME}" # e.g. drift/v1.2.3
28+
VERSION="${TAG##*/}" # v1.2.3
29+
echo "version=$VERSION" >> $GITHUB_OUTPUT
30+
31+
- name: Set up Docker Buildx
32+
uses: docker/setup-buildx-action@v3
33+
34+
- name: Log in to Container Registry
35+
uses: docker/login-action@v3
36+
with:
37+
registry: ${{ env.REGISTRY }}
38+
username: ${{ github.actor }}
39+
password: ${{ secrets.GITHUB_TOKEN }}
40+
41+
- name: Extract metadata
42+
id: docker-meta
43+
uses: docker/metadata-action@v5
44+
with:
45+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
46+
tags: |
47+
type=raw,value=${{ steps.meta.outputs.version }}
48+
type=ref,event=tag
49+
type=raw,value=latest
50+
51+
- name: Build and push Docker image
52+
uses: docker/build-push-action@v5
53+
with:
54+
context: .
55+
file: ./Dockerfile_drift
56+
push: true
57+
platforms: linux/amd64,linux/arm64
58+
tags: ${{ steps.docker-meta.outputs.tags }}
59+
labels: ${{ steps.docker-meta.outputs.labels }}
60+
build-args: |
61+
COMMIT_SHA=${{ github.sha }}
62+
VERSION=${{ steps.meta.outputs.version }}
63+
64+
create-release:
65+
needs: [build-and-push]
66+
runs-on: ubuntu-latest
67+
steps:
68+
- uses: actions/checkout@v4
69+
with:
70+
fetch-depth: 0
71+
72+
- name: Derive version
73+
id: meta
74+
run: |
75+
TAG="${GITHUB_REF_NAME}" # e.g. drift/v1.2.3
76+
VERSION="${TAG##*/}" # v1.2.3
77+
echo "version=$VERSION" >> $GITHUB_OUTPUT
78+
79+
- name: Create GitHub Release
80+
uses: softprops/action-gh-release@v1
81+
with:
82+
tag_name: ${{ github.ref_name }}
83+
name: Drift ${{ steps.meta.outputs.version }}
84+
body: |
85+
## Drift Detection Service ${{ steps.meta.outputs.version }}
86+
87+
Automated infrastructure drift detection and reporting service (Enterprise Edition).
88+
89+
### Docker Image
90+
```bash
91+
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }}
92+
```
93+
94+
draft: false
95+
prerelease: false
96+

.github/workflows/helm-release.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ permissions:
1414
jobs:
1515
release:
1616
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
chart:
20+
- digger-backend
21+
- taco-drift
22+
- taco-statesman
23+
- taco-ui
24+
- opentaco
1725
steps:
1826
- name: Checkout
1927
uses: actions/checkout@v4
@@ -25,8 +33,8 @@ jobs:
2533
run: |
2634
echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io -u ${{ github.actor }} --password-stdin
2735
28-
- name: Package and push chart
36+
- name: Package and push ${{ matrix.chart }}
2937
run: |
30-
cd helm-charts/digger-backend
38+
cd helm-charts/${{ matrix.chart }}
3139
helm package .
32-
helm push digger-backend-*.tgz oci://ghcr.io/diggerhq/helm-charts
40+
helm push ${{ matrix.chart }}-*.tgz oci://ghcr.io/diggerhq/helm-charts

.github/workflows/ui-release.yml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: UI Docker Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'ui/v*'
7+
8+
permissions:
9+
contents: write
10+
packages: write
11+
12+
env:
13+
REGISTRY: ghcr.io
14+
IMAGE_NAME: ${{ github.repository }}/taco-ui
15+
16+
jobs:
17+
build-and-push:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Derive version
25+
id: meta
26+
run: |
27+
TAG="${GITHUB_REF_NAME}" # e.g. ui/v1.2.3
28+
VERSION="${TAG##*/}" # v1.2.3
29+
echo "version=$VERSION" >> $GITHUB_OUTPUT
30+
31+
- name: Set up Docker Buildx
32+
uses: docker/setup-buildx-action@v3
33+
34+
- name: Log in to Container Registry
35+
uses: docker/login-action@v3
36+
with:
37+
registry: ${{ env.REGISTRY }}
38+
username: ${{ github.actor }}
39+
password: ${{ secrets.GITHUB_TOKEN }}
40+
41+
- name: Extract metadata
42+
id: docker-meta
43+
uses: docker/metadata-action@v5
44+
with:
45+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
46+
tags: |
47+
type=raw,value=${{ steps.meta.outputs.version }}
48+
type=ref,event=tag
49+
type=raw,value=latest
50+
51+
- name: Build and push Docker image
52+
uses: docker/build-push-action@v5
53+
with:
54+
context: .
55+
file: ./Dockerfile_ui
56+
push: true
57+
platforms: linux/amd64,linux/arm64
58+
tags: ${{ steps.docker-meta.outputs.tags }}
59+
labels: ${{ steps.docker-meta.outputs.labels }}
60+
build-args: |
61+
COMMIT_SHA=${{ github.sha }}
62+
VERSION=${{ steps.meta.outputs.version }}
63+
64+
create-release:
65+
needs: [build-and-push]
66+
runs-on: ubuntu-latest
67+
steps:
68+
- uses: actions/checkout@v4
69+
with:
70+
fetch-depth: 0
71+
72+
- name: Derive version
73+
id: meta
74+
run: |
75+
TAG="${GITHUB_REF_NAME}" # e.g. ui/v1.2.3
76+
VERSION="${TAG##*/}" # v1.2.3
77+
echo "version=$VERSION" >> $GITHUB_OUTPUT
78+
79+
- name: Create GitHub Release
80+
uses: softprops/action-gh-release@v1
81+
with:
82+
tag_name: ${{ github.ref_name }}
83+
name: Taco UI ${{ steps.meta.outputs.version }}
84+
body: |
85+
## Taco UI ${{ steps.meta.outputs.version }}
86+
87+
Web-based frontend for OpenTaco infrastructure management platform.
88+
89+
### Docker Image
90+
```bash
91+
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }}
92+
```
93+
94+
draft: false
95+
prerelease: false
96+

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ data/
3737

3838

3939
taco/data/
40+
.registry-config
41+
.secrets/
42+
43+
# Helm chart archives (generated by helm dependency update)
44+
**/charts/*.tgz
45+
**/Chart.lock
46+
47+
# Helm values with actual infrastructure config (team-specific)
48+
helm-charts/opentaco/values-production.yaml
49+
helm-charts/opentaco/values-test.yaml
4050

4151
# Atlas migration checksums (auto-generated)
4252
**/migrations/**/atlas.sum

Dockerfile_backend_ee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ RUN curl -sSf https://atlasgo.sh | sh
4343

4444

4545
# Set gin to production
46-
#ENV GIN_MODE=release
46+
ENV GIN_MODE=release
4747

4848
# Expose the running port
4949
EXPOSE 3000

Dockerfile_drift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN curl -sSf https://atlasgo.sh | sh
3535

3636

3737
# Set gin to production
38-
#ENV GIN_MODE=release
38+
ENV GIN_MODE=release
3939

4040
# Expose the running port
4141
EXPOSE 3000

0 commit comments

Comments
 (0)