subo guía
This commit is contained in:
parent
3086cc7523
commit
735601711a
1 changed files with 54 additions and 0 deletions
54
guia.txt
Normal file
54
guia.txt
Normal file
|
|
@ -0,0 +1,54 @@
|
||||||
|
1) Instalar lo básico
|
||||||
|
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y git openssh-client curl
|
||||||
|
|
||||||
|
2) Crear la clave SSH
|
||||||
|
|
||||||
|
ssh-keygen -t ed25519 -C "tu-email@ejemplo.com"
|
||||||
|
|
||||||
|
3) Arrancar el agente SSH
|
||||||
|
|
||||||
|
eval "$(ssh-agent -s)"
|
||||||
|
ssh-add ~/.ssh/id_ed25519
|
||||||
|
Comprueba que está cargada:
|
||||||
|
|
||||||
|
ssh-add -l
|
||||||
|
|
||||||
|
4) Copiar la clave pública
|
||||||
|
|
||||||
|
cat ~/.ssh/id_ed25519.pub
|
||||||
|
|
||||||
|
5) Añadir la clave en Forgejo
|
||||||
|
|
||||||
|
6) Configurar Git en la máquina
|
||||||
|
|
||||||
|
git config --global user.name "Tu Nombre"
|
||||||
|
git config --global user.email "tu-email@ejemplo.com"
|
||||||
|
|
||||||
|
|
||||||
|
7) Clonar por SSH o enlazar el repo
|
||||||
|
|
||||||
|
git clone git@TU_DOMINIO_O_IP:usuario/repositorio.git
|
||||||
|
cd repositorio
|
||||||
|
|
||||||
|
8) Subir tu archivo
|
||||||
|
|
||||||
|
cp /ruta/al/archivo.md .
|
||||||
|
git add archivo.md
|
||||||
|
git commit -m "Add markdown file"
|
||||||
|
git push origin main
|
||||||
|
|
||||||
|
9) Crear token para release
|
||||||
|
|
||||||
|
10) Crear el release desde el pipeline
|
||||||
|
|
||||||
|
12) Flujo
|
||||||
|
|
||||||
|
git add archivo.md
|
||||||
|
git commit -m "Add file"
|
||||||
|
git push origin main
|
||||||
|
|
||||||
|
git tag v1.0.1
|
||||||
|
git push origin v1.0.1
|
||||||
|
|
||||||
Loading…
Reference in a new issue