Update .gitlab-ci.yml file
This commit is contained in:
parent
ea0333ee9a
commit
093f826095
@ -22,6 +22,7 @@ stages: # List of stages for jobs, and their order of execution
|
|||||||
|
|
||||||
build-job: # This job runs in the build stage, which runs first.
|
build-job: # This job runs in the build stage, which runs first.
|
||||||
stage: build
|
stage: build
|
||||||
|
image: python:latest
|
||||||
script:
|
script:
|
||||||
- python build.py
|
- python build.py
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -31,7 +32,7 @@ build-job: # This job runs in the build stage, which runs first.
|
|||||||
deploy-job: # This job runs in the deploy stage.
|
deploy-job: # This job runs in the deploy stage.
|
||||||
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
|
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
|
||||||
environment: production
|
environment: production
|
||||||
image: eeacms/rsync
|
image: eeacms/rsync:latest
|
||||||
script:
|
script:
|
||||||
- cat index.html
|
- cat index.html
|
||||||
- rsync -az rsync@10.80.15.254::backend ./index.html
|
- rsync -az rsync@10.80.15.254::backend ./index.html
|
||||||
Loading…
Reference in New Issue
Block a user