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:

2 D铆as
2 Hrs
53 Min
4 Seg
Curso de GitHub Actions

Curso de GitHub Actions

Juan Jos茅 Torres

Juan Jos茅 Torres

Revisando logs para debuggear errores con GitHub Actions

11/18
Resources

To configure a Workflow File with an Action that requires a Secret, you must follow these steps:

  1. Open the GitHub Marketplace and search for the Action you want to use. In this case, we will use the Action "Deploy Docker to AWS, EasyTo".

  2. In the Action's documentation, look for the Workflow File example provided. This example shows how to configure the Workflow File to deploy a Docker application to an AWS S2 instance.

  3. Review the configuration examples. In this case, the Workflow File has a name "Basic Deploy" and is configured to run every time a push to the main branch of the repository is performed.

  4. The Workflow File has a job named "deploy" which is in charge of deploying to the EasyTo instance. This job uses the Action "GitHub Actions Deploy Docker to EasyTo" with version 0.5.0.

  5. In the configuration step of the Action, the use of environment variables called "access key ID", "secret access key", "default region" and "default region" is indicated.

Contributions 3

Questions 0

Sort by:

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

Cada job corre en un runner distinto, eso significa que son m谩quinas virtuales diferentes y una no tiene acceso a la otra

Con Docker

name: Docker
on:
  push

jobs:
  docker:
    runs-on: ubuntu-latest
    steps:
      -
        name: Checkout
        uses: actions/checkout@v3
      -
        name: Set up QEMU
        uses: docker/setup-qemu-action@v2
      -
        name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v2
      -
        name: Login to Docker Hub
        uses: docker/login-action@v2
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}
hay actions para usar secrets con vault, que es una herramienta especializada de hashicorp, de los creadores de terraform, para hacer SingleResponsability de la administraci贸n de secrets.