Skip to content

Commit 7d78f2b

Browse files
author
MindsDB Infrastructure / DevOps
committed
cleaning up dev, making prod release-able
1 parent 069f24a commit 7d78f2b

File tree

2 files changed

+43
-2
lines changed

2 files changed

+43
-2
lines changed

.github/workflows/dev-build-deploy-on-main.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defaults:
1212

1313
jobs:
1414

15-
build-mindsdb:
15+
build-hashnode-starter-kit:
1616
runs-on: [self-hosted, dev]
1717
steps:
1818
- uses: actions/checkout@v2
@@ -27,9 +27,10 @@ jobs:
2727

2828
deploy:
2929
runs-on: [self-hosted, dev]
30-
needs: [build-mindsdb]
30+
needs: [build-hashnode-starter-kit]
3131
environment:
3232
name: dev
33+
url: https://hashnode.dev.mindsdb.com/blog
3334
steps:
3435
- uses: actions/checkout@v2
3536
- uses: ./.github/actions/setup-env
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Prod - Build and Deploy on release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
defaults:
8+
run:
9+
shell: bash
10+
11+
jobs:
12+
13+
build-hashnode-starter-kit:
14+
runs-on: [self-hosted, prod]
15+
steps:
16+
- uses: actions/checkout@v2
17+
with:
18+
submodules: 'true'
19+
- uses: ./.github/actions/setup-env
20+
- uses: ./.github/actions/build-push-ecr
21+
with:
22+
module-name: ${{ env.CI_REPOSITORY_NAME_SLUG }}
23+
build-for-environment: prod
24+
# extra-build-args: "-f docker/mindsdb.Dockerfile"
25+
26+
deploy:
27+
runs-on: [self-hosted, prod]
28+
needs: [build-hashnode-starter-kit]
29+
environment:
30+
name: prod
31+
url: https://mindsdb.com/blog
32+
steps:
33+
- uses: actions/checkout@v2
34+
- uses: ./.github/actions/setup-env
35+
- uses: DevOps-Nirvana/aws-helm-multi-deploy-nodocker@v2
36+
with:
37+
environment-slug: prod
38+
k8s-namespace: prod
39+
image-tag: prod-${{ env.SLUG }}
40+
timeout: 600s

0 commit comments

Comments
 (0)