Docker image with alpine, heroku and docker
3.3K
Docker image with alpine, heroku and docker
production:
stage: deploy
image: escaleno/heroku-cli:7.42.2
services:
- docker:dind
variables:
DOCKER_HOST: tcp://docker:2375
before_script:
# login to heroku container registry
- heroku container:login
# Build docker image
- docker pull registry.heroku.com/$HEROKU_APP/web:latest
- docker build -t registry.heroku.com/$HEROKU_APP/web --pull --cache-from registry.heroku.com/$HEROKU_APP/web:latest .
script:
# Push new docker image
- docker push registry.heroku.com/$HEROKU_APP/web
# Trigger new release
- heroku container:release web --app $HEROKU_APP
only:
- master
Content type
Image
Digest
Size
147.6 MB
Last updated
over 4 years ago
docker pull escaleno/heroku-cli