diff --git a/.github/workflows/ci-test.yaml b/.github/workflows/ci-test.yaml index 3d633fb..3253525 100644 --- a/.github/workflows/ci-test.yaml +++ b/.github/workflows/ci-test.yaml @@ -32,19 +32,21 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - + - name: Before script env: GITHUB_BRANCH: ${{ github.head_ref || github.ref_name }} GITHUB_JOB_NAME: ${{ github.job }} run: | sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules + git submodule foreach --recursive bash -c 'git checkout .' + git submodule sync git submodule update --init --recursive sed -i '/git submodule/d' bin/first-build.sh sed -i 's/--abort-on-container-exit/-d/' bin/first-build.sh TAB=$'\t' export FALLBACK_BRANCH=$([ "$GITHUB_BRANCH" == "master" ] && echo "main" && echo "master" || echo "develop") - git submodule foreach 'bash -c "git checkout master ; git checkout develop ; git checkout $FALLBACK_BRANCH ; git checkout $GITHUB_BRANCH ; exit 0"' + git submodule foreach bash -c '(git checkout "${GITHUB_BRANCH}" || git checkout main || git checkout develop || git checkout master || git checkout "${FALLBACK_BRANCH}") && git pull' git submodule foreach git rev-parse --abbrev-ref HEAD - name: Run Script diff --git a/bin/first-build.sh b/bin/first-build.sh index ce7ebce..5a976ea 100755 --- a/bin/first-build.sh +++ b/bin/first-build.sh @@ -1,7 +1,7 @@ #!/bin/bash # Go to the develop branch of each repository -git submodule foreach bash -c 'git checkout develop || git checkout master' +git submodule foreach bash -c '(git checkout develop || git checkout master || git checkout main) && git pull' # Copy the example files find . -name '*.example' -not -path '*apollo*' | while read f; do cp "$f" "${f%%.example}"; done diff --git a/docker-compose.yml b/docker-compose.yml index fae7c21..16fcdbd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -217,53 +217,53 @@ services: depends_on: elasticmq: condition: service_healthy - presto-image: - build: presto - platform: linux/amd64 - volumes: - - "./presto:/app" - env_file: - - presto/.env_file - environment: - ROLE: worker - MODEL_NAME: image.Model - networks: - - dev - depends_on: - elasticmq: - condition: service_healthy - presto-audio: - build: presto - platform: linux/amd64 - volumes: - - "./presto:/app" - env_file: - - presto/.env_file - environment: - ROLE: worker - MODEL_NAME: audio.Model - networks: - - dev - depends_on: - elasticmq: - condition: service_healthy - presto-video: - build: presto - platform: linux/amd64 - volumes: - - "./presto:/app" - env_file: - - presto/.env_file - environment: - ROLE: worker - MODEL_NAME: video.Model - networks: - - dev - depends_on: - elasticmq: - condition: service_healthy - minio: - condition: service_healthy + # presto-image: + # build: presto + # platform: linux/amd64 + # volumes: + # - "./presto:/app" + # env_file: + # - presto/.env_file + # environment: + # ROLE: worker + # MODEL_NAME: image.Model + # networks: + # - dev + # depends_on: + # elasticmq: + # condition: service_healthy + # presto-audio: + # build: presto + # platform: linux/amd64 + # volumes: + # - "./presto:/app" + # env_file: + # - presto/.env_file + # environment: + # ROLE: worker + # MODEL_NAME: audio.Model + # networks: + # - dev + # depends_on: + # elasticmq: + # condition: service_healthy + # presto-video: + # build: presto + # platform: linux/amd64 + # volumes: + # - "./presto:/app" + # env_file: + # - presto/.env_file + # environment: + # ROLE: worker + # MODEL_NAME: video.Model + # networks: + # - dev + # depends_on: + # elasticmq: + # condition: service_healthy + # minio: + # condition: service_healthy # presto-mean-tokens: # build: presto # platform: linux/amd64 @@ -307,9 +307,9 @@ services: - redis - elasticsearch - presto-server - - presto-image - - presto-audio - - presto-video + # - presto-image + # - presto-audio + # - presto-video env_file: - alegre/.env_file networks: diff --git a/docker-test.yml b/docker-test.yml index 69b4e92..6f5a391 100644 --- a/docker-test.yml +++ b/docker-test.yml @@ -57,15 +57,15 @@ services: BOILERPLATE_ENV: test PRESTO_PORT: 8000 REDIS_DATABASE: 3 - presto-audio: - environment: - BOILERPLATE_ENV: test - presto-image: - environment: - BOILERPLATE_ENV: test - presto-video: - environment: - BOILERPLATE_ENV: test + # presto-audio: + # environment: + # BOILERPLATE_ENV: test + # presto-image: + # environment: + # BOILERPLATE_ENV: test + # presto-video: + # environment: + # BOILERPLATE_ENV: test # presto-mean-tokens: # environment: # BOILERPLATE_ENV: test diff --git a/test/image_names.txt b/test/image_names.txt index 93f834b..4cd4faf 100644 --- a/test/image_names.txt +++ b/test/image_names.txt @@ -8,10 +8,7 @@ check-narcissus check-pender check-pender-background check-postgres -check-presto-audio -check-presto-image check-presto-server -check-presto-video check-queue_worker check-web docker.elastic.co/kibana/kibana:7.9.2