diff --git a/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml index 50233e8b..1458f6b4 100644 --- a/.github/workflows/pipeline.yaml +++ b/.github/workflows/pipeline.yaml @@ -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/kind-action@v1.8.0 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 \ No newline at end of file