.gitlab-ci.yml 543 Bytes
Newer Older
1 2 3
cache:
  paths:
    - target
Aurelien Surier Garofalo's avatar
Aurelien Surier Garofalo committed
4 5 6 7 8 9 10 11 12

stages:
  - build
  - test
  - deploy
  
build_job:
  stage: build
  script: 
13
    - sudo cp /home/ec2-user/deploy-script-Dev.sh .
14
    - sudo ./deploy-script-Dev.sh --build
Aurelien Surier Garofalo's avatar
Aurelien Surier Garofalo committed
15 16 17 18

push_job:
    stage: test
    script:
19 20
     - sudo cp /home/ec2-user/deploy-script-Dev.sh .
     - sudo ./deploy-script-Dev.sh --build --push
Aurelien Surier Garofalo's avatar
Aurelien Surier Garofalo committed
21 22 23 24

deploy_job:
  stage: deploy
  script: 
25 26 27 28
    - sudo cp /home/ec2-user/deploy-script-Dev.sh .
    - sudo cp /home/ec2-user/app-machine-access.pem .
    - ./deploy-script-Dev.sh --deploy
  when: manual