👷 Use Local compose (#319)

This commit is contained in:
Nikhil Badyal
2023-08-26 13:09:33 +05:30
committed by GitHub
parent e307032582
commit 048f1affd8
2 changed files with 8 additions and 1 deletions
+6 -1
View File
@@ -11,6 +11,10 @@ on:
REDDIT_CLIENT_ID: REDDIT_CLIENT_ID:
required: false required: false
inputs: inputs:
CI_TEST:
required: false
type: boolean
default: false
COMMIT_CHANGELOG: COMMIT_CHANGELOG:
type: boolean type: boolean
required: false required: false
@@ -73,10 +77,11 @@ jobs:
- name: Build Revanced APKs - name: Build Revanced APKs
run: | run: |
if [ -n "CI_TEST" ]; then if [[ "${{ inputs.CI_TEST }}" =~ ^(true|True|1)$ ]]; then
echo "In CI Testing. Using local compose file." echo "In CI Testing. Using local compose file."
docker-compose -f docker-compose-local.yml up --build docker-compose -f docker-compose-local.yml up --build
else else
echo "Using Prod compose file."
docker-compose up --build docker-compose up --build
fi fi
- name: Upload Build APKS - name: Upload Build APKS
+2
View File
@@ -13,6 +13,8 @@ concurrency:
jobs: jobs:
build-apk-pr-check: build-apk-pr-check:
uses: ./.github/workflows/build-artifact.yml uses: ./.github/workflows/build-artifact.yml
with:
CI_TEST: true
secrets: secrets:
ENVS: | ENVS: |
CI_TEST=True CI_TEST=True