The CI/CD Project!
Deploy site on Joomla using CircleCI!
- one command with parameter
- one executor with parameter
- one job with parameter
- one global (pipeline) parameter
- Checkout (git clone) the code to CircleCI environment.
- Connecting & transfering package to AWS EC2 instance.
- Running the site on AWS EC2 instance!
- Launch EC2 instance
- Install required software:
- docker
- docker-compose
- Configure AWS instance
- Create a 'user' with 'sudo no:password' priveleges (in my case 'user'=dockeradmin)
- Generate SSH keys (private, public)
- copy rsa.pub into 'user'/.ssh/authorized_keys
- CircleCI ('Project Settings'):
- Add host (public dns name of EC2 instance) and private SSH key for it.
- Do an Initial launch the site as described in Issue #1
- all permissions and ownership in archive
joomla-data.tar.bz2
are preserved, - so you should work with git as
sudo
(sudo git add, commit, push...) - you can make an alias in bash:
- nano ~/.bashrc; alias gitpush='git commit -a -m "update..." ; git push origin main'
* credentials for site administration (http://your_ip_address/administrator): admin/admin
* credentials for db access are in `docker-compose.yml`
* The site (CMS Joomla) is absolutely clean, after installation as is
* Dir sample/ - just sample of html-pages
I have different versions of config.yml for better understanding in educational purposes.
- config.yml.v1 - simplest (straightforward) config
- config.yml - config with using 'parameters'
- All configs are working!;)
- please open an Issue in this repository:wink: