Skip to content

Commit d55f82a

Browse files
on chages only
1 parent 066054f commit d55f82a

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
lines changed

.github/workflows/cicd.yaml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ on:
1616

1717
env:
1818
# Sets the Docker image tag to use for the image built in this workflow.
19+
features_dir: src/features
1920
base_dir: src/devcontainers
2021
context: .devcontainer
2122
workspace_folder: .
@@ -40,12 +41,18 @@ jobs:
4041
pull-requests: write
4142
steps:
4243
- uses: actions/checkout@v3
43-
44-
- name: "Publish Features"
44+
- uses: dorny/paths-filter@v3
45+
id: changes
46+
with:
47+
filters: |
48+
src:
49+
- '${{ env.features_dir }}/**'
50+
- if: steps.changes.outputs.src == 'true'
51+
name: "Publish Features"
4552
uses: devcontainers/action@v1
4653
with:
4754
publish-features: "true"
48-
base-path-to-features: "./src/features"
55+
base-path-to-features: "./${{ env.features_dir }}"
4956
generate-docs: "false"
5057
env:
5158
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -84,8 +91,14 @@ jobs:
8491
registry: ${{ env.registry }}
8592
username: ${{ github.actor }}
8693
password: ${{ secrets.GITHUB_TOKEN }}
87-
88-
- uses: actions/setup-node@v6
94+
- uses: dorny/paths-filter@v3
95+
id: changes
96+
with:
97+
filters: |
98+
src:
99+
- '${{env.base_dir}}/${{ matrix.container_name }}/**'
100+
- if: steps.changes.outputs.src == 'true'
101+
uses: actions/setup-node@v6
89102
with:
90103
node-version: ${{ env.node_version }}
91104

src/devcontainers/base/.devcontainer/scripts/configure-apt.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ apt-get update
77
echo "Packages to be installed:"
88
cat packages.txt
99
echo "Starting APT packages installation"
10-
cat packages.txt | xargs apt-get install -y --install-suggests --install-recommends
10+
#cat packages.txt | xargs apt-get install -y --install-suggests --install-recommends
11+
cat packages.txt | xargs apt-get install -y
1112
echo "APT packages installation complete"

src/features/nhsnotify/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"name": "NHS Notify",
5050
"postCreateCommand": "zsh /usr/local/share/nhsnotify/scripts/postcreatecommand.sh",
5151
"postStartCommand": "zsh /usr/local/share/nhsnotify/scripts/poststartcommand.sh",
52-
"version": "1.0.6",
52+
"version": "1.0.7",
5353
"customizations": {
5454
"vscode": {
5555
"extensions": [

0 commit comments

Comments
 (0)