Session 6 – Testing integration with circle CI

Today is the final session for #PeruRoadtoGSoC2018 and we are going to test integration with CircleCI in order to contribute with the documentation of Fedora (automatize the proccess of deploying), first you have to create an account in CircleCI (link), to create it please sign up with your github account, once you do that you can see in the Projects tab that you don’t have any project building on CircleCI

2

Now we have to create our repository so create a directory called integration_Fedora containing another directory called src there create the file index.html with this code

1.png

and creating it in our github we can initiliaze our repo now ir order to push all the commits, now in the CircleCI page check the tab Projects and you can see our project integration_Fedora now click on Setup project

3.png

We have to read this guide and the first step is create a folder name .circleci and add a file config.yml there, the second step is to copy on the file the sample .yml below, now push this change up to your Github and press Start building once you did that

4.png

6.png

5.png

Just actualize the page and you have this

7

Now, we are going to do our second commit

8

9

And we see that we put an octocat when you enter the name of the commit

10

Now we are going to edit our config.yml file changing for fedora:latest

1.png

2.png

Now we are going to create a ssh-keygen, please what I did in my terminal

4

Then in the github page we can check in settings the ssh keys and we add our ssh key with the part in white selected, once you’ve done that it will be there our ssh-key

5

6.png

Now in the CircleCI page we have to authorize in permissions checkout SSH keys

7

Then just authorize

8

After creating the key we start to commit with a icon (fire)

9

Icon (rat and raise_hand)

11.png

Finally we are going to edit our config.yml file in this way

12.png

And edit our index.html file like this

13.png

Now we are going to upload it to our repository

20.png

Here you can get the link to your page

21.png

And finally we see here how it works! 🙂

22

You can check my repo here.

Anuncios

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión /  Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión /  Cambiar )

Conectando a %s