Rename staging to prod in gitlab-ci

This commit is contained in:
Karl Cordes 2019-06-16 11:38:56 +10:00
parent 502c385e9f
commit 69a2b5bf87
2 changed files with 10 additions and 2 deletions

View file

@ -7,7 +7,7 @@ build:
script:
- docker build --build-arg=COMMIT=$(git rev-parse --short HEAD) . -t "cmc:latest"
deploy_staging:
deploy_production:
stage: deploy
script:
- cd /home/cmc/cmc-sales
@ -16,7 +16,7 @@ deploy_staging:
- echo "Run the new docker image"
- /home/cmc/cmc-sales/run_docker.sh
environment:
name: staging
name: production
only:
- master

8
MIGRATION.md Normal file
View file

@ -0,0 +1,8 @@
# migration instructions
mysql -u cmc -p cmc < ~/migration/latest.sql
MariaDB [(none)]> CREATE USER 'cmc'@'172.17.0.2' IDENTIFIED BY 'somepass';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> GRANT ALL PRIVILEGES ON cmc.* TO 'cmc'@'172.17.0.2';