Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix version on heroku cli #4

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions TPs Heroku/TP4 - deploiement/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ deploy staging:
- master
script:
- apk --no-cache add npm
- npm install -g heroku
- npm i -g heroku@7.68.0
- heroku container:login
- heroku create eazytraining-staging || echo "project already exist"
- heroku container:push -a eazytraining-staging web
Expand All @@ -66,7 +66,7 @@ deploy prod:
- master
script:
- apk --no-cache add npm
- npm install -g heroku
- npm i -g heroku@7.68.0
- heroku container:login
- heroku create eazytraining-prod || echo "project already exist"
- heroku container:push -a eazytraining-prod web
Expand Down
8 changes: 4 additions & 4 deletions TPs Heroku/TP5 - Envirronnement dynamique/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ deploy staging:
- master
script:
- apk --no-cache add npm
- npm install -g heroku
- npm i -g heroku@7.68.0
- heroku container:login
- heroku create eazytraining-staging || echo "project already exist"
- heroku container:push -a eazytraining-staging web
Expand All @@ -68,7 +68,7 @@ deploy prod:
- master
script:
- apk --no-cache add npm
- npm install -g heroku
- npm i -g heroku@7.68.0
- heroku container:login
- heroku create eazytraining-prod || echo "project already exist"
- heroku container:push -a eazytraining-prod web
Expand All @@ -81,7 +81,7 @@ deploy review:
- merge_requests
script:
- apk --no-cache add npm jq
- npm install -g heroku
- npm i -g heroku@7.68.0
- heroku container:login
- APP_NAME=eazytraining-$CI_COMMIT_REF_NAME
- "[[ ${#APP_NAME} -gt 31 ]] && echo 'the name of the heroku application you want to create is longer than 30 characters' && exit 1"
Expand Down Expand Up @@ -110,6 +110,6 @@ stop review:
when: manual
script:
- apk --no-cache add npm
- npm install -g heroku
- npm i -g heroku@7.68.0
- heroku container:login
- heroku apps:destroy -a eazytraining-$CI_COMMIT_REF_NAME -c eazytraining-$CI_COMMIT_REF_NAME
10 changes: 5 additions & 5 deletions TPs Heroku/TP6 - Test de validation/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ stages:
- master
script:
- apk --no-cache add curl
- curl "https://$DOMAIN" | grep "Hello world!"
- curl "$DOMAIN" | grep "Hello world!"

docker-build:
# Use the official docker image.
Expand Down Expand Up @@ -63,7 +63,7 @@ deploy staging:
- master
script:
- apk --no-cache add npm
- npm install -g heroku
- npm i -g heroku@7.68.0
- heroku container:login
- heroku create eazytraining-staging || echo "project already exist"
- heroku container:push -a eazytraining-staging web
Expand All @@ -78,7 +78,7 @@ deploy prod:
- master
script:
- apk --no-cache add npm
- npm install -g heroku
- npm i -g heroku@7.68.0
- heroku container:login
- heroku create eazytraining-prod || echo "project already exist"
- heroku container:push -a eazytraining-prod web
Expand All @@ -91,7 +91,7 @@ deploy review:
- merge_requests
script:
- apk --no-cache add npm jq
- npm install -g heroku
- npm i -g heroku@7.68.0
- heroku container:login
- APP_NAME=eazytraining-$CI_COMMIT_REF_NAME
- "[[ ${#APP_NAME} -gt 31 ]] && echo 'the name of the heroku application you want to create is longer than 30 characters' && exit 1"
Expand Down Expand Up @@ -120,7 +120,7 @@ stop review:
when: manual
script:
- apk --no-cache add npm
- npm install -g heroku
- npm i -g heroku@7.68.0
- heroku container:login
- heroku apps:destroy -a eazytraining-$CI_COMMIT_REF_NAME -c eazytraining-$CI_COMMIT_REF_NAME

Expand Down
8 changes: 4 additions & 4 deletions TPs Heroku/mini-projet/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ deploy staging:
- master
script:
- apk --no-cache add npm
- npm install -g heroku
- npm i -g heroku@7.68.0
- heroku container:login
- heroku create eazytraining-staging || echo "project already exist"
- heroku container:push -a eazytraining-staging web
Expand All @@ -87,7 +87,7 @@ deploy prod:
- master
script:
- apk --no-cache add npm
- npm install -g heroku
- npm i -g heroku@7.68.0
- heroku container:login
- heroku create eazytraining-prod || echo "project already exist"
- heroku container:push -a eazytraining-prod web
Expand All @@ -100,7 +100,7 @@ deploy review:
- merge_requests
script:
- apk --no-cache add npm jq
- npm install -g heroku
- npm i -g heroku@7.68.0
- heroku container:login
- heroku create eazytraining-$CI_COMMIT_REF_NAME || echo "project already exist"
- heroku container:push -a eazytraining-$CI_COMMIT_REF_NAME web
Expand Down Expand Up @@ -128,7 +128,7 @@ stop review:
when: manual
script:
- apk --no-cache add npm
- npm install -g heroku
- npm i -g heroku@7.68.0
- heroku container:login
- heroku apps:destroy -a eazytraining-$CI_COMMIT_REF_NAME -c eazytraining-$CI_COMMIT_REF_NAME

Expand Down