Skip to content

Commit

Permalink
Merge pull request #80 from sonatype-nexus-community/feat/terraform-d…
Browse files Browse the repository at this point in the history
…eploy-vendorcorp

feat: terraform deploy vendorcorp
  • Loading branch information
madpah authored Jul 11, 2024
2 parents 03d8100 + 5a048ed commit dd7841f
Show file tree
Hide file tree
Showing 9 changed files with 352 additions and 378 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ permissions:
jobs:
build:
name: Build and Publish Docker Image
env:
REACT_APP_GITHUB_CLIENT_ID: ${{ secrets.REACT_APP_GITHUB_CLIENT_ID }}
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ build: yarn go-build

yarn:
yarn && NODE_OPTIONS=--openssl-legacy-provider yarn build
# && yarn version --new-version $(VERSION)

go-build:
echo "VERSION: $(VERSION)"
Expand Down
38 changes: 38 additions & 0 deletions backend.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#
# Copyright (c) 2021-present Sonatype, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

terraform {
backend "s3" {
bucket = "vendorcorp-platform-core"
key = "terraform-state/the-cla"
dynamodb_table = "vendorcorp-terraform-state-lock"
region = "us-east-2"
}
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.6.0"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = ">= 2.19.0"
}
postgresql = {
source = "cyrilgdn/postgresql"
version = ">= 1.15.0"
}
}
}
20 changes: 20 additions & 0 deletions locals.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# Copyright (c) 2021-present Sonatype, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

locals {
cla_db_username = "the_cla_bot"
cla_db_name = "the_cla"
}
Loading

0 comments on commit dd7841f

Please sign in to comment.