Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dotsunited/docker-deployer
https://github.com/dotsunited/docker-deployer
Last synced: about 20 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/dotsunited/docker-deployer
- Owner: dotsunited
- License: mit
- Created: 2018-01-10T14:45:49.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2024-08-21T21:45:15.000Z (3 months ago)
- Last Synced: 2024-08-21T23:27:49.874Z (3 months ago)
- Language: Dockerfile
- Size: 32.2 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
docker-deployer
===============A minimal Alpine Linux Docker image with the latest
[deployer](https://deployer.org) suited for automated deployments
via Continuous Delivery systems like GitLab Pipelines.Automatically build upon pushes to the master branch:
https://hub.docker.com/r/dotsunited/deployerUsage
-----### GitLab Pipelines
Example `.gitlab-ci.yml` configuration:
```
before_script:
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hostsdeploy_production:
image: dotsunited/deployer:3
stage: deploy
environment:
name: production
url: https://example.com
only:
- main
script:
- dep deploy stage=production -vvv
```Make sure, you configure the `$SSH_PRIVATE_KEY` and `$SSH_KNOWN_HOSTS` variables
in the CI/CD settings on GitLab.For more info, read
[Using SSH keys with GitLab CI/CD](https://docs.gitlab.com/ee/ci/ssh_keys/README.html).### Docker
```bash
docker run \
--tty \
--interactive \
--rm \
--volume ~/.ssh:/root/.ssh \
--volume ~/.composer/cache/files:/root/.composer/cache/files \
--volume $(pwd):/deployer \
dotsunited/deployer:3 dep deploy stage=staging
```License
-------Copyright (c) 2017-2024 Dots United GmbH.
Released under the [MIT](LICENSE) license.