Skip to content

Commit

Permalink
Ajustes nos inputs e adicionada dependência no job de criação do cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
reysonbarros committed Dec 12, 2023
1 parent 20fd9ce commit d2cc446
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,52 +12,54 @@ jobs:
runs-on: ubuntu-latest
steps:
-
name: Checkout
name: Checkout do repositório
uses: actions/checkout@v4
-
name: Login to Docker Hub
name: Login no Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up Docker Buildx
name: Configurando o Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push giropops-senhas
name: Build e push do giropops-senhas
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile-app.yaml
file: ./Dockerfile.app
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/giropops-senhas:1.0
-
name: Build and push giropops-redis
name: Build e push do giropops-redis
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile-redis.yaml
file: ./Dockerfile.redis
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/giropops-redis:7.2.3

create-cluster:
needs: build
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
- name: Verificando diretório atual
run: |
ls ${{ github.workspace }}
- name: Create k8s Kind Cluster
name: Checkout do repositório
uses: actions/checkout@v4
-
name: Criando o cluster
uses: helm/[email protected]
with:
version: "v0.20.0"
kubectl_version: "v1.28.2"
config: "${{ github.workspace }}/k8s/cluster.yaml"
verbosity: "1"
- name: Testando kubectl
node_image: "kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72"
cluster_name: "giropops"
kubectl_version: "v1.28.2"
-
name: Verificando informações do cluster
run: |
kubectl cluster-info
kubectl get nodes -o wide
kubectl describe nodes

0 comments on commit d2cc446

Please sign in to comment.