Skip to content

Commit

Permalink
chore: cd
Browse files Browse the repository at this point in the history
  • Loading branch information
guesant committed Nov 19, 2024
1 parent c3220b5 commit 70d1ae0
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 70d1ae0

Please sign in to comment.