Faster and simple maintenance page

Working on different platform either to update, patch, etc need to be notificate for those people that consume that services, it shouldn’t change if that service it’s internal, you must notificate your teams about it. When you’re into your maintenance window you can use a faster way to broadcast everyone you’re working on it; I use this simple solution when I was working into a Jenkins migration, hence I stop the jenkins service and instead of 500 html error I developed a simple html text exposing it by a nginx container by the root path. ...

2024-02-04 Ā· map[name:Jose Castrillo]

Trigger pipelines by using the API

When you join a new project, company, customer, etc. (you’re still in the onboarding phase šŸ˜…), meanwhile you may find that you need to make a few changes to get your team’s production pipelines up and running. In this case, you can call an API trigger from one project to another (this is just a example). I’ve been in the situation described above before, and it was how I discovered this amazing feature in GitLab. ...

2023-07-15 Ā· map[name:Jose Castrillo]

Mastering GitLab CI/CD, Unleashing the Power of Pipelines

Hey everyone! šŸ‘‹ I hope you’re all having a fantastic summer time! šŸŒž I wanted to drop a quick note to let you know that I’m currently working on something special for all my fellow developers/operations and GitLab enthusiasts out there. šŸ¤“āœØ In the upcoming posts, I’ll be sharing a treasure trove of valuable tips and tricks related to GitLab pipelines! based in my experiences šŸ—ļø Whether you’re a seasoned pro or just getting started with GitLab CI/CD, there’s bound to be something for everyone. ...

2023-06-16 Ā· map[name:Jose Castrillo]

Cloining a repo and setting up as artifact

On this post I will give you an example of how to clone a repo into your pipeline and use it for other jobs. As you can read from Gitlab official documentation artifact can output an archive of files/directories. I set the following example: artifacts: paths: - <project_name> exclude: - <project_name>/.git/**/* expire_in: 60 seconds We need to call the artifacts by using ā€œartifactsā€ keyboard in the pipeline, in this example paths keyboard which files/directories add into artifacts. ...

2022-12-20 Ā· map[name:Jose Castrillo]

Trigger pipelines in Gitlab

The following post is example of how to activate and use Trigger pipeline by API the official documentation over here as it mentioned is can be use ā€œto trigger a pipeline for a specific branch or tagā€; for our example I use it to activate a pipeline into specific branch. Steps: repoA will be the main one where the pipeline trigger it will be activate From repoA go to Settings-CI/CD-Pipeline triggers Click on ā€œadd triggerā€ copy your token From repoB that will be our caller of the repoA pipeline create a variable where you can paste the token. Finally into your pipeline on repoB you can add something like below: The best part is that you can reference to specific branch ref="<branch_name>". ...

2022-11-10 Ā· map[name:Jose Castrillo]

Ansible missing sudo

Ansible FAILED! => {"msg": "Missing sudo password"} I have a couple of ansible-playbook, from one of my endpoint device started to prompt missing sudo password due there is needed a sudoers access, thus this is one of the solutions. login by ssh to the device, where ansible can’t login. go to /etc/sudoers.d/ create a new entry eg: ā€œ023_user-nopassā€ add the following line ā€œuser ALL=(ALL) NOPASSWD: ALLā€ into the file ā€œ023_user-nopassā€ change the permission by using: sudo chmod 440 023_user-nopass NOTE: please change value for your normal user access -not the root one- ...

How setup a Gitlab Runner (CI)

Part I - I’m learning Gitlab Runner and how them works on CI implementation. GitLab Runner is an application that works with GitLab CI to run jobs in a pipeline, they are written in GO Summary the task I will do: Install Gitlab-runner as container(podman). Runner registration. Enter the GitLab instance URL registration token. runner description. tags. Select an executor. Create a gitlab-ci.yml Install runner: Create the Volume: podman volume create gitlab-runner-config Pull and start the container by register command, then we will prompt the data need for register the runner into the project. ...

2021-12-08 Ā· map[name:Jose Castrillo]

Repo-list

This is a documentation I’ve made time ago searching some open source tools and platforms(& freeware), I hope It can be useful to you: Ticketing https://www.graylog.org/ Monitoring / Open source Discover and resolve issues faster. Keep end users happy with less downtime and better performance by proactively monitoring key indicators and exceptions across the entire stack. https://www.happyfox.com/ Ticketing / private Meet HappyFox, a practical help desk and customer support software solution. Reduce chaos and bring order to your support process with a robust support ticket system, self-service knowledge base and community forums. ...

2020-03-08 Ā· map[name:Jose Castrillo]

How to set you SSH key into Gitlab

How to set you SSH key into Gitlab [First you need to had installed Git onto your distro] Go to your terminal and issue the follow command to generate your key: $ssh-keygen Copy your public key from the route: /home/user/.ssh/id_rsa.pub Then go at your gitlab profile https://gitlab.com/profile/keys/ a paste and save. From the terminal test the conection by typing: $ssh -T git@gitlab.com and if everything was fine it has to promt –> Welcome to GitLab, @user_account! ...

2019-12-26 Ā· map[name:Jose Castrillo]