Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Latest commit

 

History

History
executable file
·
48 lines (27 loc) · 1.12 KB

gitlab.md

File metadata and controls

executable file
·
48 lines (27 loc) · 1.12 KB

gitlab CI/CD

✏️

test this

https://docs.gitlab.com/ee/user/project/pages/getting_started/pages_from_scratch.html

GitLab tricks

Add SSH key to a GitLab account

  • Generate an SSH key pair:
ssh-keygen -t ed25519 -C "username@email.com"
  • Copy the generated public key in ~/.ssh/id_ed25519.pub

  • Go to https://gitlab.com or local GitLab instance and sign in.

  • Avatar in the upper right corner > Settings > SSH Keys

  • Paste the public key into the Key text box

  • Put a descriptive Title (e.g.: Work Laptop), and an (optional) expiration date.

  • Click Add key

Allowing communication with an insecure registry

[It's actually a dockerd trick, but still useful to stay here.]

When using a docker registry with no hash:

services:
#  - name: docker:19.03.12-dind
#    entrypoint: ["dockerd-entrypoint.sh"]
    command: ["--insecure-registry=registry-domain-name-1", "--insecure-registry=registry-domain-name-2"]

Questions?

  • How to get (via API requests) the repositories where a pipeline finished successfully in the master branch?