Skip to content

Commit

Permalink
cleaning up dev, making prod release-able
Browse files Browse the repository at this point in the history
  • Loading branch information
MindsDB Infrastructure / DevOps committed Dec 19, 2023
1 parent 069f24a commit 7d78f2b
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/dev-build-deploy-on-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defaults:

jobs:

build-mindsdb:
build-hashnode-starter-kit:
runs-on: [self-hosted, dev]
steps:
- uses: actions/checkout@v2
Expand All @@ -27,9 +27,10 @@ jobs:

deploy:
runs-on: [self-hosted, dev]
needs: [build-mindsdb]
needs: [build-hashnode-starter-kit]
environment:
name: dev
url: https://hashnode.dev.mindsdb.com/blog
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup-env
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/prod-build-deploy-on-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Prod - Build and Deploy on release

on:
release:
types: [published]

defaults:
run:
shell: bash

jobs:

build-hashnode-starter-kit:
runs-on: [self-hosted, prod]
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- uses: ./.github/actions/setup-env
- uses: ./.github/actions/build-push-ecr
with:
module-name: ${{ env.CI_REPOSITORY_NAME_SLUG }}
build-for-environment: prod
# extra-build-args: "-f docker/mindsdb.Dockerfile"

deploy:
runs-on: [self-hosted, prod]
needs: [build-hashnode-starter-kit]
environment:
name: prod
url: https://mindsdb.com/blog
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup-env
- uses: DevOps-Nirvana/aws-helm-multi-deploy-nodocker@v2
with:
environment-slug: prod
k8s-namespace: prod
image-tag: prod-${{ env.SLUG }}
timeout: 600s

0 comments on commit 7d78f2b

Please sign in to comment.