Commit 6a80a52d authored by Thomas Boni's avatar Thomas Boni
Browse files

Merge branch '389-new-job-artisan_migrate' into 'latest'

Resolve "[New Job] - Artisan_migrate"

Closes #389

See merge request r2devops/hub!220
parents d0e280bb 29446b82
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -21,13 +21,15 @@ This job will allow you to migrate the database using a migration file that you
## Job details

* Job name: `artisan_migrate`
* Default stage: `build`
* Default stage: `deploy`
* Docker image: [`edbizarro/gitlab-ci-pipeline-php:7.3`](https://hub.docker.com/r/edbizarro/gitlab-ci-pipeline-php){:target="_blank"}
* When: `always`


### Variables

!!! info
    If you have setup Gitlab's CI/CD variables, they will be used instead of the ones defined in `.env`, just make sure to name them exactly the same.
    
| Name | Default | Description |
| ---- | ------- | --------------- |
| `PROJECT_ROOT` | `.` | Path to the directory containing environment variables |
+2 −2
Original line number Diff line number Diff line
# Job from R2Devops hub --> r2devops.io

stages:
  - build
  - deploy

artisan_migrate:
  stage: build
  stage: deploy
  image:
    name: edbizarro/gitlab-ci-pipeline-php:7.3
    entrypoint: [""]
+1 −1
Original line number Diff line number Diff line
name: artisan_migrate
description: A ready-to-use job for migrating your database
default_stage: build
default_stage: deploy
icon: 🗃️
maintainer: moha-s
license: MIT
+1 −0
Original line number Diff line number Diff line
* Update job's stage
 No newline at end of file