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
This commit is contained in:
Yassine Doghri 2022-10-24 15:41:08 +00:00
parent f9572e4125
commit 3419369af0
2 changed files with 9 additions and 10 deletions

View File

@ -165,11 +165,8 @@ docker:
strategy: depend
variables:
PARENT_PIPELINE_ID: $CI_PIPELINE_ID
only:
refs:
- develop
- main
- beta
- alpha
variables:
- $CI_PROJECT_NAMESPACE == "adaures"
rules:
- if: ($CI_COMMIT_BRANCH == "alpha" || $CI_COMMIT_BRANCH == "alpha" || $CI_COMMIT_BRANCH == "beta") && $CI_PROJECT_NAMESPACE == "adaures"
exists:
- CP_VERSION.env
- if: ($CI_COMMIT_BRANCH == "develop" && $CI_PROJECT_NAMESPACE == "adaures")

View File

@ -21,6 +21,8 @@ can be added as a cache handler.
- `develop` [unstable], latest development branch build
- `beta` [stable], latest beta version build
- `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
@ -33,7 +35,7 @@ can be added as a cache handler.
services:
app:
image: castopod/app:beta
image: castopod/app:latest
container_name: "castopod-app"
volumes:
- castopod-media:/opt/castopod/public/media
@ -51,7 +53,7 @@ can be added as a cache handler.
restart: unless-stopped
web-server:
image: castopod/web-server:beta
image: castopod/web-server:latest
container_name: "castopod-web-server"
volumes:
- castopod-media:/var/www/html/media