Skip to content
Snippets Groups Projects
Commit 3419369a authored by Yassine Doghri's avatar Yassine Doghri
Browse files

docs(docker): add tags for specific versions and latest builds

update gitlabci: do not run docker build if CP_VERSION.env file is not present
parent f9572e41
No related branches found
No related tags found
No related merge requests found
...@@ -165,11 +165,8 @@ docker: ...@@ -165,11 +165,8 @@ docker:
strategy: depend strategy: depend
variables: variables:
PARENT_PIPELINE_ID: $CI_PIPELINE_ID PARENT_PIPELINE_ID: $CI_PIPELINE_ID
only: rules:
refs: - if: ($CI_COMMIT_BRANCH == "alpha" || $CI_COMMIT_BRANCH == "alpha" || $CI_COMMIT_BRANCH == "beta") && $CI_PROJECT_NAMESPACE == "adaures"
- develop exists:
- main - CP_VERSION.env
- beta - if: ($CI_COMMIT_BRANCH == "develop" && $CI_PROJECT_NAMESPACE == "adaures")
- alpha
variables:
- $CI_PROJECT_NAMESPACE == "adaures"
...@@ -21,6 +21,8 @@ can be added as a cache handler. ...@@ -21,6 +21,8 @@ can be added as a cache handler.
- `develop` [unstable], latest development branch build - `develop` [unstable], latest development branch build
- `beta` [stable], latest beta version build - `beta` [stable], latest beta version build
- `1.0.0-beta.x` [stable], specific beta version build (since `1.0.0-beta.22`) - `1.0.0-beta.x` [stable], specific beta version build (since `1.0.0-beta.22`)
- `latest` [stable], latest version build
- `1.x.x` [stable], specific version build (since `1.0.0`)
## Example usage ## Example usage
...@@ -33,7 +35,7 @@ can be added as a cache handler. ...@@ -33,7 +35,7 @@ can be added as a cache handler.
services: services:
app: app:
image: castopod/app:beta image: castopod/app:latest
container_name: "castopod-app" container_name: "castopod-app"
volumes: volumes:
- castopod-media:/opt/castopod/public/media - castopod-media:/opt/castopod/public/media
...@@ -51,7 +53,7 @@ can be added as a cache handler. ...@@ -51,7 +53,7 @@ can be added as a cache handler.
restart: unless-stopped restart: unless-stopped
web-server: web-server:
image: castopod/web-server:beta image: castopod/web-server:latest
container_name: "castopod-web-server" container_name: "castopod-web-server"
volumes: volumes:
- castopod-media:/var/www/html/media - castopod-media:/var/www/html/media
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment