| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 | image: tiangolo/docker-with-composebefore_script:  - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY  - pip install docker-auto-labelsstages:  - test  - build  - deploytests:  stage: test  script:    - sh ./scripts/test.sh  tags:    - build    - testbuild-stag:  stage: build  script:    - TAG=stag FRONTEND_ENV=staging sh ./scripts/build-push.sh  only:    - master  tags:    - build    - test    build-prod:  stage: build  script:    - TAG=prod FRONTEND_ENV=production sh ./scripts/build-push.sh  only:    - production  tags:    - build    - testdeploy-stag:  stage: deploy  script:     - >      DOMAIN=stag.ai-anchor.com      TRAEFIK_TAG=stag.ai-anchor.com      STACK_NAME=stag-ai-anchor-com      TAG=stag      sh ./scripts/deploy.sh  environment:    name: staging    url: https://stag.ai-anchor.com  only:    - master  tags:    - swarm    - stagdeploy-prod:  stage: deploy  script:    - >      DOMAIN=ai-anchor.com      TRAEFIK_TAG=ai-anchor.com      STACK_NAME=ai-anchor-com      TAG=prod      sh ./scripts/deploy.sh  environment:    name: production    url: https://ai-anchor.com  only:    - production  tags:    - swarm    - prod
 |