Rename staging to prod in gitlab-ci
This commit is contained in:
parent
502c385e9f
commit
69a2b5bf87
|
|
@ -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
8
MIGRATION.md
Normal 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';
|
||||
Loading…
Reference in a new issue