Jul 2, 2024
Gitlab CI/CD: Automation engine for software development (similar to Jenkins).
Gitlab Pipeline (CI YAML): Version-controlled .gitlab-ci.yml
file at the root directory of a Gitlab project.
Gitlab Runner: Program executing the pipeline jobs; can run on local machines, VMs, or Docker containers.
Stages Section
stages: [build, test, deploy]
Job Definition
stage:
keyword.script:
for commands.Artifacts Keyword
artifacts: { paths: ["build/executable_binary_file_v1"] }
Adjust Unit Test Job
cat $CI_PROJECT_DIR/build/executable_binary_file_v1
image:
keyword.image: python:latest
)variables:
keyword; specify key-value pairs.variables: { USERNAME: "tech_with_moss" }