From 70d1ae0efd8082f6690a9737a474371e7cc1437d Mon Sep 17 00:00:00 2001 From: "Gabriel R. Antunes" Date: Tue, 19 Nov 2024 09:12:59 -0400 Subject: [PATCH] chore: cd --- .github/workflows/cd.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 7e5e186..5c6feb0 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -8,11 +8,15 @@ on: jobs: cd_build_push: - name: "Build and Push (Development)" + strategy: + matrix: + environment: [development, production] + + name: "Build and Push ${{ matrix.environment }}" runs-on: ubuntu-latest environment: - name: development + name: ${{ matrix.environment }} steps: - uses: actions/checkout@v4 @@ -29,13 +33,17 @@ jobs: push-image-registry-token: ${{ secrets.REGISTRY_TOKEN }} cd_deploy_development: - name: Deploy to Cluster (Development) + strategy: + matrix: + environment: [development, production] + + name: Deploy to Cluster ${{ matrix.environment }} runs-on: deploy needs: [cd_build_push] environment: - name: development + name: ${{ matrix.environment }} url: ${{ env.DEPLOYMENT_URL }} steps: