-
-
Notifications
You must be signed in to change notification settings - Fork 793
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
276 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/.github/workflows" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "gradle" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "terraform" | ||
directory: "/infra" | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [ created ] | ||
|
||
jobs: | ||
build: | ||
name: Build App | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Restore Gradle cache | ||
id: cache | ||
uses: actions/[email protected] | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- uses: actions/[email protected] | ||
with: | ||
java-version: 1.8 | ||
- name: Build Web App | ||
run: ./gradlew :web-app:build | ||
- name: Upload Static Web App Artifact | ||
uses: actions/upload-artifact@v2 | ||
id: upload | ||
with: | ||
path: web-app/build/distributions | ||
name: static-web-app | ||
if-no-files-found: error | ||
|
||
deploy-Infrastructure: | ||
runs-on: ubuntu-latest | ||
name: Deploy Main Infrastructure | ||
needs: [ build ] | ||
env: | ||
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USER }} | ||
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} | ||
ARM_ACCESS_KEY: ${{ secrets.ARM_ACCESS_KEY }} | ||
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }} | ||
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }} | ||
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }} | ||
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Terraform environment | ||
uses: little-core-labs/[email protected] | ||
with: | ||
version: 0.14.5 | ||
- name: Terraform init | ||
run: terraform init | ||
working-directory: infra | ||
- name: Terraform apply | ||
run: terraform apply -auto-approve | ||
working-directory: infra | ||
env: | ||
TF_VAR_docker_registry_username: ${{ secrets.GH_PKG_USER }} | ||
TF_VAR_docker_registry_password: ${{ secrets.GH_PKG_PASSWORD }} | ||
TF_VAR_api_admin_user: ${{ secrets.API_ADMIN_USER }} | ||
TF_VAR_api_admin_password: ${{ secrets.API_ADMIN_PASSWORD }} | ||
TF_VAR_cors_anywhere_allow_list: "" | ||
TF_VAR_cors_anywhere_rate_limit: "" | ||
|
||
deploy-StaticWebApp: | ||
runs-on: ubuntu-latest | ||
name: Deploy Static Web App | ||
needs: [ build ] | ||
steps: | ||
- name: Download Static Web App Artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: static-web-app | ||
path: dist/ | ||
- name: Deploy | ||
uses: JamesIves/[email protected] | ||
with: | ||
BRANCH: gh-pages # The branch the action should deploy to. | ||
FOLDER: dist/ # The folder the action should deploy. | ||
CLEAN: true # Automatically remove deleted files from the deploy branch | ||
# - name: Deploy Azure Static Web App | ||
# uses: Azure/[email protected] | ||
# with: | ||
# azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_AMBITIOUS_WATER_0BC116E03 }} | ||
# repo_token: ${{ github.token }} # Used for Github integrations (i.e. PR comments) | ||
# action: "upload" | ||
# ###### Repository/Build Configurations - These values can be configured to match you app requirements. ###### | ||
# # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig | ||
# app_location: "/dist" | ||
# ###### End of Repository/Build Configurations ###### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Refresh Terraform State | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * 0' | ||
|
||
jobs: | ||
refresh-Infrastructure: | ||
runs-on: ubuntu-latest | ||
name: Refresh Main Infrastructure | ||
env: | ||
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USER }} | ||
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} | ||
ARM_ACCESS_KEY: ${{ secrets.ARM_ACCESS_KEY }} | ||
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }} | ||
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }} | ||
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }} | ||
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Terraform environment | ||
uses: little-core-labs/[email protected] | ||
with: | ||
version: 0.14.5 | ||
- name: Terraform init | ||
run: terraform init | ||
working-directory: infra | ||
- name: Terraform refresh | ||
run: terraform refresh | ||
working-directory: infra | ||
env: | ||
TF_VAR_docker_registry_username: ${{ secrets.GH_PKG_USER }} | ||
TF_VAR_docker_registry_password: ${{ secrets.GH_PKG_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,122 +1,8 @@ | ||
/fuzzywuzzy/app/build/ | ||
/desktop/build/classes/kotlin/jvm/main/META-INF/desktop.kotlin_module | ||
/desktop/build/classes/kotlin/jvm/main/ComposableSingletons$MainKt$lambda-1$1$1.class | ||
/desktop/build/classes/kotlin/jvm/main/ComposableSingletons$MainKt$lambda-1$1.class | ||
/desktop/build/classes/kotlin/jvm/main/ComposableSingletons$MainKt$lambda-2$1.class | ||
/desktop/build/classes/kotlin/jvm/main/ComposableSingletons$MainKt$lambda-3$1.class | ||
/desktop/build/classes/kotlin/jvm/main/ComposableSingletons$MainKt.class | ||
/desktop/build/classes/kotlin/jvm/main/MainKt$spotiFlyerRoot$1.class | ||
/desktop/build/classes/kotlin/jvm/main/MainKt.class | ||
/desktop/build/processedResources/jvm/main/drawable/ic_arrow.xml | ||
/desktop/build/processedResources/jvm/main/drawable/ic_download_arrow.xml | ||
/desktop/build/processedResources/jvm/main/drawable/ic_error.xml | ||
/desktop/build/processedResources/jvm/main/drawable/ic_gaana.xml | ||
/desktop/build/processedResources/jvm/main/drawable/ic_github.xml | ||
/desktop/build/processedResources/jvm/main/drawable/ic_heart.xml | ||
/desktop/build/processedResources/jvm/main/drawable/ic_history.xml | ||
/desktop/build/processedResources/jvm/main/drawable/ic_instagram.xml | ||
/desktop/build/processedResources/jvm/main/drawable/ic_linkedin.xml | ||
/desktop/build/processedResources/jvm/main/drawable/ic_mug.xml | ||
/desktop/build/processedResources/jvm/main/drawable/ic_musicplaceholder.xml | ||
/desktop/build/processedResources/jvm/main/drawable/ic_refreshgradient.xml | ||
/desktop/build/processedResources/jvm/main/drawable/ic_round_cancel_24.xml | ||
/desktop/build/processedResources/jvm/main/drawable/ic_share_open.xml | ||
/desktop/build/processedResources/jvm/main/drawable/ic_song_placeholder.xml | ||
/desktop/build/processedResources/jvm/main/drawable/ic_spotiflyer_logo.xml | ||
/desktop/build/processedResources/jvm/main/drawable/ic_spotify_logo.xml | ||
/desktop/build/processedResources/jvm/main/drawable/ic_tick.xml | ||
/desktop/build/processedResources/jvm/main/drawable/ic_youtube.xml | ||
/desktop/build/processedResources/jvm/main/drawable/ic_youtube_music_logo.xml | ||
/desktop/build/processedResources/jvm/main/drawable/music.xml | ||
/desktop/build/compose/tmp/createRuntimeImage.args.txt | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/inputs/source-to-output.tab | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/inputs/source-to-output.tab.keystream | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/inputs/source-to-output.tab.keystream.len | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/inputs/source-to-output.tab.len | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/inputs/source-to-output.tab.values.at | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/inputs/source-to-output.tab_i | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/inputs/source-to-output.tab_i.len | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/internal-name-to-source.tab | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/package-parts.tab | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/package-parts.tab.keystream | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/package-parts.tab.keystream.len | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/package-parts.tab.len | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/package-parts.tab.values.at | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/package-parts.tab_i | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/package-parts.tab_i.len | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/proto.tab | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/proto.tab.keystream | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/proto.tab.keystream.len | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/proto.tab.len | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/proto.tab.values.at | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/proto.tab_i | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/proto.tab_i.len | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/source-to-classes.tab | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/source-to-classes.tab.len | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/source-to-classes.tab_i | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/lookups/counters.tab | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/lookups/file-to-id.tab | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/lookups/file-to-id.tab.keystream | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/lookups/file-to-id.tab.keystream.len | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/lookups/file-to-id.tab.len | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/lookups/file-to-id.tab.values.at | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/lookups/file-to-id.tab_i | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/lookups/file-to-id.tab_i.len | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/lookups/id-to-file.tab | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/lookups/id-to-file.tab.keystream | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/lookups/id-to-file.tab.keystream.len | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/lookups/id-to-file.tab.len | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/lookups/id-to-file.tab.values.at | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/lookups/lookups.tab | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/lookups/lookups.tab.keystream | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/lookups/lookups.tab.keystream.len | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/lookups/lookups.tab.len | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/lookups/lookups.tab.values.at | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/lookups/lookups.tab_i | ||
/desktop/build/kotlin/compileKotlinJvm/caches-jvm/lookups/lookups.tab_i.len | ||
/desktop/build/kotlin/compileKotlinJvm/build-history.bin | ||
/desktop/build/kotlin/compileKotlinJvm/last-build.bin | ||
/desktop/build/libs/desktop-jvm-2.2.jar | ||
/desktop/build/libs/desktop-metadata-2.2.jar | ||
/desktop/build/libs/desktop-metadata-2.2-sources.jar | ||
/desktop/build/tmp/jvmJar/MANIFEST.MF | ||
/desktop/build/tmp/metadataJar/MANIFEST.MF | ||
/desktop/build/tmp/metadataSourcesJar/MANIFEST.MF | ||
/desktop/build/tmp/packageUberJarForCurrentOS/MANIFEST.MF | ||
/common/dependency-injection/build/classes/kotlin/desktop/main/ | ||
/common/dependency-injection/build/ | ||
/common/database/build/generated/sqldelight/code/Database/com/shabinder/ | ||
/.gradle/ | ||
/.idea/ | ||
/local.properties | ||
/android/build/ | ||
/buildSrc/build/pluginUnderTestMetadata/ | ||
/common/compose-ui/build/classes/kotlin/desktop/main/ | ||
/common/data-models/build/classes/kotlin/desktop/main/ | ||
/common/data-models/build/ | ||
/common/database/build/classes/kotlin/desktop/main/ | ||
/common/database/build/ | ||
/build/ | ||
/common/compose-ui/build/ | ||
/buildSrc/.gradle/ | ||
/buildSrc/build/ | ||
/buildSrc/buildSrc/.gradle/ | ||
/buildSrc/buildSrc/build/ | ||
/desktop/build/ | ||
/common/compose/build/ | ||
/common/list/build/ | ||
/common/main/build/ | ||
/common/root/build/ | ||
.idea/ | ||
local.properties | ||
/android/release/ | ||
/android/google-services.json | ||
/web-app/build/ | ||
build/ | ||
.gradle/ | ||
terraform.tfvars | ||
.terraform/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
terraform { | ||
backend "artifactory" { | ||
// -backend-config="[email protected]" \ | ||
// -backend-config="password=xxxxxx" \ | ||
url = "https://spotiflyer.jfrog.io/artifactory" | ||
repo = "terraform-state" | ||
subpath = "SpotiFlyer" | ||
} | ||
} | ||
|
||
provider "azurerm" { | ||
features {} | ||
} | ||
|
||
resource "azurerm_resource_group" "main" { | ||
location = "westeurope" | ||
name = "SpotiFlyer" | ||
} | ||
|
||
resource "azurerm_application_insights" "main" { | ||
name = azurerm_resource_group.main.name | ||
location = azurerm_resource_group.main.location | ||
resource_group_name = azurerm_resource_group.main.name | ||
application_type = "java" | ||
} | ||
|
||
resource "azurerm_app_service_plan" "main" { | ||
location = azurerm_resource_group.main.location | ||
name = azurerm_resource_group.main.name | ||
resource_group_name = azurerm_resource_group.main.name | ||
kind = "Linux" | ||
reserved = true | ||
sku { | ||
tier = "Free" | ||
size = "F1" | ||
} | ||
} | ||
|
||
resource "azurerm_app_service" "main" { | ||
resource_group_name = azurerm_app_service_plan.main.resource_group_name | ||
app_service_plan_id = azurerm_app_service_plan.main.id | ||
location = azurerm_app_service_plan.main.location | ||
name = azurerm_app_service_plan.main.name | ||
https_only = true | ||
|
||
site_config { | ||
use_32_bit_worker_process = true | ||
app_command_line = "" | ||
linux_fx_version = "DOCKER|${var.docker_image_tag}" | ||
http2_enabled = true | ||
cors { | ||
allowed_origins = ["*"] | ||
} | ||
} | ||
|
||
app_settings = { | ||
WEBSITES_ENABLE_APP_SERVICE_STORAGE = false | ||
DOCKER_REGISTRY_SERVER_URL = var.docker_registry | ||
DOCKER_REGISTRY_SERVER_USERNAME = var.docker_registry_username | ||
DOCKER_REGISTRY_SERVER_PASSWORD = var.docker_registry_password | ||
AZURE_MONITOR_INSTRUMENTATION_KEY = azurerm_application_insights.main.instrumentation_key | ||
APPINSIGHTS_INSTRUMENTATIONKEY = azurerm_application_insights.main.instrumentation_key | ||
APPINSIGHTS_PROFILERFEATURE_VERSION = "1.0.0" | ||
WEBSITE_HTTPLOGGING_RETENTION_DAYS = "35" | ||
CORSANYWHERE_ALLOWLIST = var.cors_anywhere_allow_list | ||
CORSANYWHERE_RATELIMIT = var.cors_anywhere_rate_limit | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
output "app_service_name" { | ||
value = azurerm_app_service.main.name | ||
} | ||
|
||
output "app_service_default_hostname" { | ||
value = "https://${azurerm_app_service.main.default_site_hostname}" | ||
} |
Oops, something went wrong.