Commit 9fded860 authored by Syed Bilal Raees's avatar Syed Bilal Raees

job1

parent 648ffca9
Pipeline #2074 failed
...@@ -44,10 +44,11 @@ ...@@ -44,10 +44,11 @@
# name: staging # name: staging
# url : http://localhost/test # url : http://localhost/test
#build_app: #build_app:
image: job1:
image:
name: python:3.6 name: python:3.6
before_script: before_script:
- python3 -V - python3 -V
- ls -ltr - ls -ltr
- python3 -m venv venv - python3 -m venv venv
...@@ -56,26 +57,26 @@ before_script: ...@@ -56,26 +57,26 @@ before_script:
- pwd - pwd
# - whoami # - whoami
stages: stages:
- production - production
- development - development
production: production:
stage: production stage: production
script: script:
- pip install Flask - pip install Flask
- sudo systemctl start prod.service - sudo systemctl start python.service
only: only:
- dev - master
development: development:
stage: development stage: development
script: script:
- pip install Flask - pip install Flask
# - echo $PATH # - echo $PATH
- echo "deploying to staging server" - echo "deploying to staging server"
- sudo systemctl start python.service - sudo systemctl start prod.service
only: only:
- master - dev
tags: tags:
- ci - ci
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment