diff --git a/.dockerignore b/.devcontainer/Dockerfile.dockerignore similarity index 100% rename from .dockerignore rename to .devcontainer/Dockerfile.dockerignore diff --git a/.github/workflows/devcontainer.yml b/.github/workflows/devcontainer.yml index 7190079e..1cfae42a 100644 --- a/.github/workflows/devcontainer.yml +++ b/.github/workflows/devcontainer.yml @@ -44,4 +44,6 @@ on: - main paths: - .devcontainer/Dockerfile + - .devcontainer/Dockerfile.dockerignore + - .github/workflows/devcontainer.yml workflow_dispatch: null diff --git a/.gitlab/workflows/devcontainer.yml b/.gitlab/workflows/devcontainer.yml index 71fc291c..f55092ce 100644 --- a/.gitlab/workflows/devcontainer.yml +++ b/.gitlab/workflows/devcontainer.yml @@ -11,6 +11,8 @@ dev-container-publish: rules: - changes: - .devcontainer/Dockerfile + - .devcontainer/Dockerfile.dockerignore + - .gitlab/workflows/devcontainer.yml if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push" - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "web" script: diff --git a/template/.dockerignore b/template/.devcontainer/Dockerfile.dockerignore similarity index 100% rename from template/.dockerignore rename to template/.devcontainer/Dockerfile.dockerignore diff --git a/template/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows/devcontainer.yml.jinja b/template/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows/devcontainer.yml.jinja index bd1d7a5b..266705b5 100644 --- a/template/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows/devcontainer.yml.jinja +++ b/template/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows/devcontainer.yml.jinja @@ -55,4 +55,6 @@ on: - main paths: - .devcontainer/Dockerfile + - .devcontainer/Dockerfile.dockerignore + - .github/workflows/devcontainer.yml workflow_dispatch: null diff --git a/template/[% if repo_host_type == 'gitlab.com' or repo_host_type == 'gitlab-self-managed' %].gitlab[% endif %]/workflows/devcontainer.yml.jinja b/template/[% if repo_host_type == 'gitlab.com' or repo_host_type == 'gitlab-self-managed' %].gitlab[% endif %]/workflows/devcontainer.yml.jinja index 392fbc52..0c7dc8fd 100644 --- a/template/[% if repo_host_type == 'gitlab.com' or repo_host_type == 'gitlab-self-managed' %].gitlab[% endif %]/workflows/devcontainer.yml.jinja +++ b/template/[% if repo_host_type == 'gitlab.com' or repo_host_type == 'gitlab-self-managed' %].gitlab[% endif %]/workflows/devcontainer.yml.jinja @@ -22,6 +22,8 @@ dev-container-publish: rules: - changes: - .devcontainer/Dockerfile + - .devcontainer/Dockerfile.dockerignore + - .gitlab/workflows/devcontainer.yml if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push" - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "web" script: