Skip to content

Commit

Permalink
deployment test
Browse files Browse the repository at this point in the history
  • Loading branch information
hedi-edelbloute committed Apr 10, 2024
1 parent c39725e commit d068dee
Showing 1 changed file with 45 additions and 2 deletions.
47 changes: 45 additions & 2 deletions .github/workflows/github-actions-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
schedule:
- cron: 15 6 * * SUN
workflow_dispatch:
inputs:
environment:
type: environment
required: true

jobs:
Build:
Expand All @@ -19,5 +23,44 @@ jobs:
echo "Branch name : ${{ github.ref }}"
- uses: actions/checkout@v4
- run: ls


Test:
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch'
needs: Build
environment: Test
steps:
- run: echo "Testing..."

Load-Test:
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch'
needs: Build
environment: Load-Test
steps:
- run: |
echo "Testing..."
sleep 15
Production:
runs-on: ubuntu-latest
needs: [Test, Load-Test]
environment:
name: Production
url: https://writeabout.net
if: github.event.inputs.environment == 'Production'
steps:
- run: |
echo "Step 1 deploying"
sleep 10
- run: |
echo "Step 2 deploying"
sleep 10
- run: |
echo "Step 3 deploying"
sleep 10
- run: |
echo "Step 4 deploying"
sleep 10
- run: |
echo "Step 5 deploying"
sleep 10

0 comments on commit d068dee

Please sign in to comment.