mirror of
https://github.com/bahdotsh/wrkflw.git
synced 2026-02-24 03:49:45 +01:00
- Move test workflows to tests/workflows/ - Move GitLab CI fixtures to tests/fixtures/gitlab-ci/ - Move test scripts to tests/scripts/ - Move Podman testing docs to tests/ - Update paths in test scripts and documentation - Delete MANUAL_TEST_CHECKLIST.md as requested - Update tests/README.md to reflect new organization
40 lines
883 B
YAML
40 lines
883 B
YAML
stages:
|
|
- build
|
|
- test
|
|
- deploy
|
|
|
|
# Including external files
|
|
include:
|
|
- local: '.gitlab/ci/build.yml' # Will be created in a moment
|
|
- local: '.gitlab/ci/test.yml' # Will be created in a moment
|
|
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml' # Built-in template
|
|
|
|
variables:
|
|
RUST_VERSION: "1.76"
|
|
CARGO_HOME: "${CI_PROJECT_DIR}/.cargo"
|
|
|
|
# Default settings for all jobs
|
|
default:
|
|
image: rust:${RUST_VERSION}
|
|
before_script:
|
|
- rustc --version
|
|
- cargo --version
|
|
|
|
# Main pipeline jobs that use the included templates
|
|
production_deploy:
|
|
stage: deploy
|
|
extends: .deploy-template # This template is defined in one of the included files
|
|
variables:
|
|
ENVIRONMENT: production
|
|
only:
|
|
- main
|
|
when: manual
|
|
|
|
staging_deploy:
|
|
stage: deploy
|
|
extends: .deploy-template
|
|
variables:
|
|
ENVIRONMENT: staging
|
|
only:
|
|
- staging
|
|
when: manual |