Skip to content

Commit

Permalink
fix: build dev container when mounted file changed (#792)
Browse files Browse the repository at this point in the history
  • Loading branch information
huxuan authored Nov 17, 2024
1 parent fea9391 commit 722fe69
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ on:
- .devcontainer/Dockerfile
- .devcontainer/Dockerfile.dockerignore
- .github/workflows/devcontainer.yml
- Makefile
push:
branches:
- main
paths:
- .devcontainer/Dockerfile
- .devcontainer/Dockerfile.dockerignore
- .github/workflows/devcontainer.yml
- Makefile
workflow_dispatch: null

concurrency:
Expand Down
2 changes: 2 additions & 0 deletions .gitlab/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ dev-container-publish:
- .devcontainer/Dockerfile
- .devcontainer/Dockerfile.dockerignore
- .gitlab/workflows/devcontainer.yml
- Makefile
if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "web"
- changes:
- .devcontainer/Dockerfile
- .devcontainer/Dockerfile.dockerignore
- .gitlab/workflows/devcontainer.yml
- Makefile
if: $CI_PIPELINE_SOURCE == 'merge_request_event'
script:
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ on:
- .devcontainer/Dockerfile
- .devcontainer/Dockerfile.dockerignore
- .github/workflows/devcontainer.yml
- Makefile
push:
branches:
- main
paths:
- .devcontainer/Dockerfile
- .devcontainer/Dockerfile.dockerignore
- .github/workflows/devcontainer.yml
- Makefile
workflow_dispatch: null

concurrency:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ dev-container-publish:
- .devcontainer/Dockerfile
- .devcontainer/Dockerfile.dockerignore
- .gitlab/workflows/devcontainer.yml
- Makefile
if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "web"
- changes:
- .devcontainer/Dockerfile
- .devcontainer/Dockerfile.dockerignore
- .gitlab/workflows/devcontainer.yml
- Makefile
if: $CI_PIPELINE_SOURCE == 'merge_request_event'
script:
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
Expand Down

0 comments on commit 722fe69

Please sign in to comment.