Create main.yml #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |