Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 927 Bytes

CICD.md

File metadata and controls

56 lines (41 loc) · 927 Bytes

CICD with Gitlab

Gitlab Diagram

Gitlab Diagram 2

Install GitLab Runner

curl -LJO "https://s3.dualstack.us-east-1.amazonaws.com/gitlab-runner-downloads/latest/deb/gitlab-runner_amd64.deb"

sudo dpkg -i gitlab-runner_amd64.deb

sudo chmod +x /usr/bin/gitlab-runner

Create Install

Register Runner

gitlab-runner register  --url $IP  --token $TOKEN

CICD Testing

<name-of-job>:
    stage: <name-of-stage>
    tags:
        - <name-of-tags>
    script:
        - <custom script>
    only:
        - <branch>