Commit 74b687ab authored by julien dehos's avatar julien dehos

clean ci + readme

parent 31694933
Pipeline #44869363 passed with stages
in 8 minutes and 29 seconds
......@@ -5,7 +5,7 @@ build:
untracked: true
script:
- nix-build nix/docker.nix
- cp result miso-xhr.tar.gz
- cp result app.tar.gz
only:
- master
......@@ -18,18 +18,11 @@ production:
- apk add curl bash nodejs
- curl https://cli-assets.heroku.com/install.sh | sh
script:
- docker load < miso-xhr.tar.gz
#- docker login --username=_ --password=$HEROKU_API_KEY registry.heroku.com
# - docker login --username=_ --password=$HEROKU_API_KEY registry.heroku.com
# - echo "$HEROKU_API_KEY" | docker login --username=_ --password=$HEROKU_API_KEY registry.heroku.com
#- heroku login
- docker load < app.tar.gz
- heroku container:login
- docker tag miso-xhr:latest registry.heroku.com/miso-xhr/web
- docker push registry.heroku.com/miso-xhr/web
#- docker run --rm -e HEROKU_API_KEY=$HEROKU_API_KEY heroku/heroku:16 container:release web --app miso-xhr
- heroku container:release web --app miso-xhr
- docker rmi miso-xhr:latest
- docker tag $APP_NAME registry.heroku.com/$APP_NAME/web
- docker push registry.heroku.com/$APP_NAME/web
- heroku container:release web --app $APP_NAME
only:
- master
......
......@@ -72,5 +72,9 @@ heroku open --app miso-xhr
## deploy (using gitlab CI/CD)
TODO
- add a HEROKU_API_KEY variable in the Gitlab repo (see account setting in Heroku)
- create a container app in Heroku and add a APP_NAME variable in the Gitlab repo
- push the master branch for updating the app
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