Skip to content

Commit

Permalink
Merge pull request #76 from green-ecolution/feature/build-only-when-n…
Browse files Browse the repository at this point in the history
…eeded

feat: build only when needed
  • Loading branch information
choffmann authored Jul 30, 2024
2 parents a3ede5c + b7ac50e commit c0f8589
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.docker/
!.docker/nginx.conf
.git/
.github/
dist/
k8s/
node_modules/
.dockerignore
.editorconfig
.gitignore
.node-version
CHANGELOG.md
README.md
10 changes: 10 additions & 0 deletions .github/workflows/build-and-push-develop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
name: Build and Push Docker Image Develop
"on":
push:
paths:
- "**/**"
- "!.github/**"
- "!k8s/**"
- "!.dockerignore"
- "!.editorconfig"
- "!.gitignore"
- "!.node-version"
- "!CHANGELOG.md"
- "!README.md"
branches:
- develop

Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/build-and-push-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ name: Build and Push Docker Image Production

on:
pull_request:
paths:
- "**/**"
- "!.github/**"
- "!k8s/**"
- "!.dockerignore"
- "!.editorconfig"
- "!.gitignore"
- "!.node-version"
- "!CHANGELOG.md"
- "!README.md"
branches:
- main
types:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/build-and-push-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ name: Build and Push Docker Image Staging
"on":
workflow_dispatch:
push:
paths:
- "**/**"
- "!.github/**"
- "!k8s/**"
- "!.dockerignore"
- "!.editorconfig"
- "!.gitignore"
- "!.node-version"
- "!CHANGELOG.md"
- "!README.md"
branches:
- release/*
- hotfix/*
Expand Down

0 comments on commit c0f8589

Please sign in to comment.