Your CI File has been created! Click on the link below to download
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [EN](/README.md) [PT-BR](/README.pt-br.md)
2 |
3 | # CI Generator
4 | CI Generator is a project that generate a file gitlab-ci.yml to your repository (gitlab)
5 | This project it’s being built with:
6 | * Node.js
7 | * Express
8 | * Sucrase
9 | * Vue.js
10 | ## Attention
11 | To run this project it is necessary node.js, yam or npm in your instance
12 | ## Installing dependencies
13 | in the root of the project
14 | ```
15 | yarn && yarn dev
16 | ```
17 | or
18 | ```
19 | npm i && npm run dev
20 | ```
21 | then
22 | ```
23 | cd public/
24 | ```
25 | and run again
26 | ```
27 | yarn && yarn serve
28 | ```
29 | or
30 | ```
31 | npm i && npm run serve
32 | ```
33 | After the server starts, just go to
34 | ```http://localhost:8080```
35 | ## Contributions
36 | New issues, features ideas, pull requests are welcome :)
37 | How to contribute:
38 | 1. Make a fork in the project
39 | 2. Create your own feature branch (git checkout -b feature/yourfeature)
40 | 3. Commit what you added (git commit -m 'I added that thing')
41 | 4. Make the push for your branch (git push origin feature/yourfeature)
42 | 5. Open a pull request
43 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 Lucas Simão
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/README.pt-br.md:
--------------------------------------------------------------------------------
1 | [EN](/README.md) [PT-BR](/README.pt-br.md)
2 |
3 | # CI Generator
4 |
5 | CI Generator é um projeto que gera um arquivo gitlab-ci.yml para seu repositorio (gitlab)
6 |
7 | Esse projeto está sendo feito com:
8 | * Node.js
9 | * Express
10 | * Sucrase
11 | * Vue.js
12 |
13 | ## Atenção
14 |
15 | Para executar esse projeto sera necessário ter em sua maquina o node.js, yarn ou npm.
16 |
17 | ## Instalando dependências
18 |
19 | Na raiz do projeto
20 | ```
21 | yarn && yarn dev
22 | ```
23 | ou
24 |
25 | ```
26 | npm i && npm run dev
27 | ```
28 |
29 | Em seguida
30 |
31 | ```
32 | cd public/
33 | ```
34 | e execute novamente
35 | ```
36 | yarn && yarn serve
37 | ```
38 | ou
39 |
40 | ```
41 | npm i && npm run serve
42 | ```
43 |
44 | Após o servidor ter sido iniciado basta acessar
45 | ```http://localhost:8080```
46 |
47 | ## Contribuições
48 | Novas issues, ideas de features, pull requests são muito bem-vindos :)
49 |
50 | Como contribuir:
51 |
52 | 1. Faça um fork no projeto
53 | 2. Crie sua feature branch (git checkout -b feature/suafeature)
54 | 3. Commit suas alterações (git commit -m 'Adicionei tal coisa')
55 | 4. Faça o push para sua branch (git push origin feature/suafeature)
56 | 5. Abra um pull request
57 |
--------------------------------------------------------------------------------
/public/src/components/instructions.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | First type the instance user, and then the IP address of your instance.
6 | Finally, indicate the way you want your files to go.
7 | Click on generate CI file to download the file.
8 |
9 |
10 |
11 |
12 |
13 | Now you have to rename the file to "gitlab-ci.yml"
14 | After, add this file to the repository
15 |
16 |
17 |
18 |
19 |
On gitlab, open the repository and select "Settings" from the left side menu and click on "CI/CD"
20 |
21 |
22 |
23 |
The page that opened contains the session called "Variables", click on the "Expand" button.
24 |
25 |
26 |
27 |
28 | Now you have to create a variable where key is "PRODUCTION_KEY" and the value is the private key of your
29 | instance.
30 |
31 |
32 |
33 |
34 |
35 | Click on "Save variables" and everything is set, everytime there is a change on the master, your files will be
36 | sent to your instance, right in the folder you had informed.
37 |