diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e2496e9..e1672b7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -78,9 +78,11 @@ jobs: shell: bash run: | if [ ${GITHUB_REF} == "refs/heads/main" ]; then - echo "##[set-output name=result;]$(echo "production")" - else - echo "##[set-output name=result;]$(echo ${GITHUB_REF#refs/heads/})" + echo "##[set-output name=result;]$(echo "prd")" + elif [ ${GITHUB_REF} == "refs/heads/alpha" ]; then + echo "##[set-output name=result;]$(echo "dev")" + elif [ ${GITHUB_REF} == "refs/heads/beta" ]; then + echo "##[set-output name=result;]$(echo "stg")" fi id: extract_environment diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1ec0dd7..577e189 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,6 +16,7 @@ jobs: - name: Install Docker Compose run: | python3 -m pip install docker-compose --upgrade + - name: Build env: ENV: test @@ -25,6 +26,7 @@ jobs: export ENV=test export IMAGE_TAG=test docker-compose -f build.docker-compose.yml build --build-arg NPM_TOKEN=${NPM_TOKEN} + - name: Run Test env: ENV: test @@ -33,4 +35,10 @@ jobs: run: | export ENV=test export IMAGE_TAG=test - docker-compose -f build.docker-compose.yml run -e NPM_TOKEN=${NPM_TOKEN} --rm --entrypoint="npm run test" maestro \ No newline at end of file + docker-compose -f build.docker-compose.yml run -e NPM_TOKEN=${NPM_TOKEN} --rm --entrypoint="npm run test" maestro + + - name: Remove Docker's Trash + continue-on-error: true + run: | + docker system prune + docker rmi -f $(docker images -aq) diff --git a/README.md b/README.md index b226330..c336ec3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@
Maestro
-