You don't have access to this class

Keep learning! Join and start boosting your career

Aprovecha el precio especial y haz tu profesión a prueba de IA

Antes: $249

Currency
$209
Suscríbete

Termina en:

0 Días
0 Hrs
35 Min
35 Seg
Curso de GitHub Actions

Curso de GitHub Actions

Juan José Torres

Juan José Torres

Integración continua CI: Compilación

13/18
Resources

Successfully integrating Docker images into various cloud services may seem like a challenge, but with the help of GitHub and its workflows, it's easier than you might think. Here's how to do it using examples with AWS, GCP and Azure.

How to start the integration flow on GitHub?

Going back to GitHub is vital when we talk about the second part of the continuous integration flow. In this case, the focus is on the build or compile that is executed by two types of events: a workflow dispatch or an issue comment. The choice on whether to compile on AWS, GCP or Azure is made via an option presented in a choice type input.

What is the function of the docker- AWS job?

The docker-aws job is the first job and is executed when we want to compile the image and upload it to the AWS registry. This process only runs when a conditional is met that confirms that the event that triggered the workflow was a pull request and that the pull request comment contains 'build-aws'.

How to configure QEMU and Docker BuildX?

To compile the necessary files for the Docker image, QEMU, a special Docker option, is configured using an officially defined Docker action called setupQemuAction. Additionally, another action is used to configure Docker BuildX, which controls how to compile the images and is recommended for production environments.

How to upload the image to AWS?

To upload the image to AWS, we need to configure credentials for an AWS IAM user that include an accessKeyId and a secretAccessKey. Then, we authenticate to the Elastic Container Registry (ECR), the service that AWS provides for uploading and maintaining Docker images, using the AmazonECRlogin action.

How to add the image to other cloud providers?

In addition to AWS, the image can also be added to GCP and Azure. In GCP, the registry is called 'Artifact Registry', and in Azure, it is 'Azure Container Registry'. For each of these options, you should look for shares in the Marketplace and check in community forums how other people uploaded their Docker images there.

How to verify successfully compiled and uploaded images?

To verify that all images have been successfully compiled and uploaded, you can check the 'Actions' tab on GitHub. Here, you can see the details of each job in the workflow, including whether it has passed or failed, how long it took, and what was the last step that was executed.

With these tools, you can create your own continuous integration workflow for your personal projects. This process will allow you to demonstrate expertise and knowledge in the effective use of GitHub Actions, Docker and various cloud services. Impress everyone with your mastery of continuous integration!

Contributions 4

Questions 2

Sort by:

Want to see more contributions, questions and answers from the community?

Supongo que el mensaje era “Te invito a tomar la ruta de AWS que tenemos en Platzi para ti” 😅

Esto puede ser por los nervios, las cámaras y que estas tratando de pensar en varias cosas al tiempo mientras grabas o simplemente un error y ya esta.

Me da la sensación de que a medida que el curso avanza muchos usuarios fueron dejando de hacer el curso y fueron dejando de participar.

Esto puedes ser por múltiples razones:

  • El profe se ve bastante tenso al intentar explicar los conceptos.
  • Habla muy rapido y nos es tan sencillo seguirle el paso sobre todo para personas sin ciertos conocimientos previos.
  • Me parece que lo único que hace es leer el código y los slides pero se queda corto al enseñar.

Nada de esto lo digo en mala onda, solo es mi percepción hasta este punto y si sirve de algo para mejorar seria genial, tanto para el profe como para el curso y la estructura, metodología , pedagogía y ejemplos prácticos utilizados, de lo contrario y si me estoy equivocando 🙏 perdón.

Si sirve de algo dejare por aquí un “Presuntamente” 😅

Excelente clase, excelente maestro, esta clase hizo click con los temas de devops.
Un "artifact" en el contexto de GitHub Actions se refiere a cualquier archivo o conjunto de archivos que se producen durante la ejecución de un workflow. Estos pueden incluir resultados de pruebas, compilaciones de software, o cualquier otro tipo de datos relevantes generados durante el proceso de integración y despliegue. Los artifacts pueden ser almacenados y utilizados posteriormente, por ejemplo, para la revisión de resultados, despliegues o para compartir información entre diferentes jobs dentro de un workflow.
Podrian poner el repositorio usado en esta clase como recurso de la misma Asi podemos revisar mas facil el workflow