Add the challenge description and walkthroth

This commit is contained in:
Rances Acosta 2022-05-15 01:40:26 -04:00
parent 937d7d5cef
commit d9312815d4
6 changed files with 93 additions and 82 deletions

View file

@ -1,4 +1,4 @@
name: Gatsby Publish name: CD
on: on:
push: push:

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View file

@ -4,105 +4,116 @@ date: "2015-05-28T22:40:32.169Z"
description: How this project has been made, walkthrough and opinions by Racosta. description: How this project has been made, walkthrough and opinions by Racosta.
--- ---
Far far away, behind the word mountains, far from the countries Vokalia and Hello welcome to my blog in this oportunity im going to talk you about Continuous integration and continuos deployment. First of all we need to know, what is CI/CD?
Consonantia, there live the blind texts. Separated they live in Bookmarksgrove
right at the coast of the Semantics, a large language ocean. A small river named
Duden flows by their place and supplies it with the necessary regelialia.
## On deer horse aboard tritely yikes and much Continuous integration (CI) and continuous deployment (CD), also known as CI/CD, embodies a culture, operating principles, and a set of practices that application development teams use to deliver code changes more frequently and reliably.
The Big Oxmox advised her not to do so, because there were thousands of bad CI/CD is a best practice for devops teams. It is also a best practice in agile methodology. By automating integration and delivery, CI/CD lets software development teams focus on meeting business requirements while ensuring code quality and software security.
Commas, wild Question Marks and devious Semikoli, but the Little Blind Text
didnt listen. She packed her seven versalia, put her initial into the belt and
made herself on the way.
- This however showed weasel ![devops Cicle](./CICD_CICD.png)
- Well uncritical so misled
- this is very interesting
- Goodness much until that fluid owl
When she reached the first hills of the **Italic Mountains**, she had a last ## GitHub Pages
view back on the skyline of her hometown _Bookmarksgrove_, the headline of
[Alphabet Village](http://google.com) and the subline of her own road, the Line
Lane. Pityful a rhetoric question ran over her cheek, then she continued her
way. On her way she met a copy.
### Overlaid the jeepers uselessly much excluding GitHub Pages are public webpages hosted and published through GitHub. The quickest way to get up and running is by using the Jekyll Theme Chooser to load a pre-made theme. You can then modify your GitHub Pages' content and style.
But nothing the copy said could convince her and so it didnt take long until a This guide will lead you through creating a user site at username.github.io.
few insidious Copy Writers ambushed her, made her drunk with
[Longe and Parole](http://google.com) and dragged her into their agency, where
they abused her for their projects again and again. And if she hasnt been
rewritten, then they are still using her.
> Far far away, behind the word mountains, far from the countries Vokalia and ![gh-pages](./pages.png)
> Consonantia, there live the blind texts. Separated they live in Bookmarksgrove
> right at the coast of the Semantics, a large language ocean.
It is a paradisematic country, in which roasted parts of sentences fly into your ## GitHub Actions
mouth. Even the all-powerful Pointing has no control about the blind texts it is
an almost unorthographic life One day however a small line of blind text by the
name of Lorem Ipsum decided to leave for the far World of Grammar.
### According a funnily until pre-set or arrogant well cheerful Automate your workflow from idea to production
The Big Oxmox advised her not to do so, because there were thousands of bad GitHub Actions makes it easy to automate all your software workflows, now with world-class CI/CD. Build, test, and deploy your code right from GitHub. Make code reviews, branch management, and issue triaging work the way you want.
Commas, wild Question Marks and devious Semikoli, but the Little Blind Text
didnt listen. She packed her seven versalia, put her initial into the belt and
made herself on the way.
1. So baboon this ![gh-actions](./githubactions.png)
2. Mounted militant weasel gregariously admonishingly straightly hey
3. Dear foresaw hungry and much some overhung
4. Rash opossum less because less some amid besides yikes jeepers frenetic
impassive fruitlessly shut
When she reached the first hills of the Italic Mountains, she had a last view ## The process
back on the skyline of her hometown Bookmarksgrove, the headline of Alphabet
Village and the subline of her own road, the Line Lane. Pityful a rhetoric
question ran over her cheek, then she continued her way. On her way she met a
copy.
> The copy warned the Little Blind Text, that where it came from it would have In this challenge i need to make a GitHub Pages using CI/CD. Applying automatization from the pull request to the deploy all runing the gitflow.
> been rewritten a thousand times and everything that was left from its origin
> would be the word "and" and the Little Blind Text should turn around and
> return to its own, safe country.
But nothing the copy said could convince her and so it didnt take long until a >1st step
few insidious Copy Writers ambushed her, made her drunk with Longe and Parole Make a GitHub Pages with your free github account using the guide posted on [GitHub Pages](https://pages.github.com/).
and dragged her into their agency, where they abused her for their projects
again and again. And if she hasnt been rewritten, then they are still using
her. Far far away, behind the word mountains, far from the countries Vokalia and
Consonantia, there live the blind texts.
#### Silent delightfully including because before one up barring chameleon >2nd step
Push your code to the repository that host the GitHub Pages
Separated they live in Bookmarksgrove right at the coast of the Semantics, a >3rd step
large language ocean. A small river named Duden flows by their place and Create your branches. In my case i make 3 branches (Main, Develop and gh-pages) all the branches have a purpose that i will explain now.
supplies it with the necessary regelialia. It is a paradisematic country, in
which roasted parts of sentences fly into your mouth.
Even the all-powerful Pointing has no control about the blind texts it is an The 1st branch is Develop: In develop all the changes and feature develop is made here.
almost unorthographic life One day however a small line of blind text by the
name of Lorem Ipsum decided to leave for the far World of Grammar. The Big Oxmox
advised her not to do so, because there were thousands of bad Commas, wild
Question Marks and devious Semikoli, but the Little Blind Text didnt listen.
##### Wherever far wow thus a squirrel raccoon jeez jaguar this from along This branch is the more unestable of the project, when the code is stable this code is pushed to main with a CI GitHub Action that is trigged when a pull request is made to merge the Develop and Main branch.
She packed her seven versalia, put her initial into the belt and made herself on The 2nd branch is Main: In Main all the tested code is alocated is like the delivery version of the code ready for deploy.
the way. When she reached the first hills of the Italic Mountains, she had a
last view back on the skyline of her hometown Bookmarksgrove, the headline of
Alphabet Village and the subline of her own road, the Line Lane. Pityful a
rhetoric question ran over her cheek, then she continued her way. On her way she
met a copy.
###### Slapped cozy a that lightheartedly and far This branch is the more stable of all the project, here the code is ready for deploy this code is tested and review, when the pull request is acepted and the code is merge from develop to main this trigged another GitHub Action that deploy the code to the gh-pages branch that is published on the web.
The copy warned the Little Blind Text, that where it came from it would have The 3rd branch is Gh-pages: This branch is the deployed version of the code running on the GitHub Pages.
been rewritten a thousand times and everything that was left from its origin
would be the word "and" and the Little Blind Text should turn around and return >3rd step
to its own, safe country. But nothing the copy said could convince her and so it Create your CI/CD pipeline with GitHub Actions, First i create the CI action.
didnt take long until a few insidious Copy Writers ambushed her, made her drunk
with Longe and Parole and dragged her into their agency, where they abused her ```js
for their projects again and again. This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
#push:
#branches: [ main]
# Triggers the workflow on push or pull request events but only for the main branch
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Test_CI:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3.1.1
with:
# Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0
node-version: 12.x
- run: npm ci
- run: npm test
- run: npm run build --if-present
```
Second i create the CD action.
```js
name: CD
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: enriikke/gatsby-gh-pages-action@v2
with:
access-token: ${{ secrets.ACCESS_TOKEN }}
deploy-branch: gh-pages
```
## My Opinion
This was a very tough challenge, i learn the magic behind CI/CD. GitHub Pages are public webpages hosted and publish through GitHub and the best of all are that this webpage is free easy to use very user friendly. GitHub Actions make easy to automate software workflows automating tests, integrations and deploys.
In my project i use Gatsby blogs, this react-based framework for creating websites and apps in this project i make a mearly blog. Very easy to redact and keep updated, all the software workflow is automated from the push to the deploy with the GitHub Actions.

Binary file not shown.

After

Width:  |  Height:  |  Size: 386 KiB