Skip to content

Commit

Permalink
fix: remove token and submodules option
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-koontz committed Apr 23, 2024
1 parent 1c206d7 commit d3de27a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/dev-build-deploy-on-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,9 @@ jobs:
env:
AWS_REGION: us-east-2
steps:
- name: Generate token
# Use the Github App private key to request an installation
# token with read-only access to the organization's private
# repositories. This token is then used in the checkout step
# (but not in subsequent steps that create releases and upload
# assets, those still use the default token that has write
# access to the current repository).
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.ACTION_APP_ID }}
private_key: ${{ secrets.ACTION_APP_KEY }}
- name: Checkout tag
uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ steps.generate_token.outputs.token }}
- name: Pull MindsDB Github Actions
uses: actions/checkout@v4
Expand All @@ -44,7 +31,6 @@ jobs:
with:
module-name: ${{ env.CI_REPOSITORY_SLUG }}
build-for-environment: development
# extra-build-args: -f docker/Dockerfile

deploy:
runs-on: mdb-dev
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/prod-build-deploy-on-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,14 @@ defaults:


jobs:

build:
runs-on: mdb-dev
env:
AWS_REGION: us-east-2
steps:
- name: Generate token
# Use the Github App private key to request an installation
# token with read-only access to the organization's private
# repositories. This token is then used in the checkout step
# (but not in subsequent steps that create releases and upload
# assets, those still use the default token that has write
# access to the current repository).
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.ACTION_APP_ID }}
private_key: ${{ secrets.ACTION_APP_KEY }}
- name: Checkout tag
uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ steps.generate_token.outputs.token }}
- name: Pull MindsDB Github Actions
uses: actions/checkout@v4
Expand All @@ -45,7 +31,6 @@ jobs:
with:
module-name: ${{ env.CI_REPOSITORY_SLUG }}
build-for-environment: production
extra-build-args: -f docker/Dockerfile
image-ref: ${{ env.CI_REF_SLUG }}

deploy-prod:
Expand Down

0 comments on commit d3de27a

Please sign in to comment.