Skip to content

Create main.yml

Create main.yml #1

Workflow file for this run

name: CI-CD
on:
push:
branches: ["main"]
workflow_dispatch:
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Autenticar no Docker Hub
run: echo "Executando o comando Docker login"
- name: Construcao da Imagem Docker
run: echo "Executando o comando Docker Build"
- name: Envio da Imagem Docker
run: echo "Executando o comando Docker Push"
cd:
runs-on: ubuntu-latest
needs: [ci]
steps:
- name: Autenticar na AWS
run: echo "Executando o comando aws configura"
- name: Configurar o kubectl
run: echo "Executando o comando aws eks update-config"
- name: Deploy dos manifestos no Kubernetes
run: echo "Executando o comando kubectl apply"