mirror of
https://gitlab.com/Anson-Projects/projects.git
synced 2025-06-15 14:36:47 +00:00
39 lines
858 B
YAML
39 lines
858 B
YAML
build:
|
|
stage: build
|
|
image:
|
|
name: gcr.io/kaniko-project/executor:v1.21.0-debug
|
|
entrypoint: [""]
|
|
script:
|
|
- /kaniko/executor
|
|
--context "${CI_PROJECT_DIR}"
|
|
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
|
|
--destination "${CI_REGISTRY_IMAGE}:${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}"
|
|
--destination "${CI_REGISTRY_IMAGE}:latest"
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "master"'
|
|
|
|
staging:
|
|
stage: deploy
|
|
image: ${CI_REGISTRY_IMAGE}:latest
|
|
script:
|
|
- echo "Building the project with Quarto..."
|
|
- quarto render --to html --output-dir public
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
|
|
pages:
|
|
stage: deploy
|
|
script:
|
|
- echo "Publishing site..."
|
|
needs:
|
|
- staging
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
rules:
|
|
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
|
|
|
|
include:
|
|
- local: ghost-upload/.gitlab-ci.yml
|