Hello, everyone,
i use a Gitlab runner for my deployment. every deployment now creates a docker container, but it is not removed anymore. how can i optimize this?
my code looks like this
variables:
S3_BUCKET_NAME: "bitbucket-repositories"
deploy to production:
environment: production
image: python:latest
script:
- pip install awscli
- apt-get update
- apt-get -y install curl
- apt-get -y install sudo
# - apt-get -y install libjpeg62
# - apt-get -y install automake
- curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
- apt-get -y install nodejs
- cd app
- npm install
# - echo "deb http://mirrors.kernel.org/ubuntu/ xenial main" | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y --allow-unauthenticated libpng12-0
- npm run buildNewVersion
- cd build
- rm bundle.js
- mv bundle.js.gz bundle.js
- cd ..
- npm run awsdeploy
many thanks in advance