Skip to content

Commit

Permalink
Triggering pipeline on Push only
Browse files Browse the repository at this point in the history
Merge pull request #25 from Daoud-Hussain/stagging
  • Loading branch information
Daoud-Hussain authored Nov 18, 2024
2 parents 10587ab + 26eff22 commit 2f310c9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dev-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
push:
branches:
- dev
pull_request:
branches:
- dev
# pull_request:
# branches:
# - dev

env:
IMAGE_NAME: daoudhussaindev/next-js-app
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/prod-cicd.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Production CI/CD Pipeline
on:
# push:
# branches:
# - main
pull_request:
push:
branches:
- main
# pull_request:
# branches:
# - main

env:
IMAGE_NAME: daoudhussaindev/next-js-app
NODE_VERSION: 18.x
Expand Down Expand Up @@ -100,7 +101,7 @@ jobs:
echo 'Starting new container...'
docker run -d \
--name next-js-app-prod \
-p 3000:3000 \
-p 8000:8000 \
--restart unless-stopped \
${{ env.IMAGE_NAME }}:dev
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/stagging-cicd.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Stagging CI/CD Pipeline
on:
# push:
# branches:
# - stagging
pull_request:
push:
branches:
- stagging
# pull_request:
# branches:
# - stagging

env:
IMAGE_NAME: daoudhussaindev/next-js-app
NODE_VERSION: 18.x
Expand Down

0 comments on commit 2f310c9

Please sign in to comment.