Skip to content

Commit 371411a

Browse files
authored
Merge pull request #10 from devilbox/build-arm
Build arm
2 parents b5be76e + e92b2a8 commit 371411a

File tree

7 files changed

+19
-9
lines changed

7 files changed

+19
-9
lines changed

.github/workflows/devilbox_action_branch.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ name: devilbox_build
1616
on:
1717
push:
1818
paths:
19-
- 'tests/**'
2019
- '.github/workflows/devilbox*.yml'
2120
- '!.github/workflows/devilbox_schedule.yml'
2221
- 'Dockerfiles/devilbox/**'
23-
- '!Dockerfiles/devilbox/README.md'
22+
- '!Dockerfiles/devilbox/*.md'
23+
- 'tests/**'
24+
- 'Makefile'
2425

2526

2627
jobs:

.github/workflows/devilbox_action_pull_request.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ name: devilbox_build
1616
on:
1717
pull_request:
1818
paths:
19-
- 'tests/**'
2019
- '.github/workflows/devilbox*.yml'
2120
- '!.github/workflows/devilbox_schedule.yml'
2221
- 'Dockerfiles/devilbox/**'
23-
- '!Dockerfiles/devilbox/README.md'
22+
- '!Dockerfiles/devilbox/*.md'
23+
- 'tests/**'
24+
- 'Makefile'
2425

2526

2627
jobs:

.github/workflows/devilbox_params.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ env:
2020
"NAME": "PHP",
2121
"VERSION": ["5.3", "5.4", "5.5", "5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2"],
2222
"FLAVOUR": ["devilbox"],
23-
"ARCH": ["linux/amd64"]
23+
"ARCH": ["linux/amd64", "linux/arm64"]
2424
}
2525
]
2626

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,11 @@ lint-readme:
9797
# Docker Targets
9898
# -------------------------------------------------------------------------------------------------
9999
.PHONY: build
100+
build: ARGS+=--build-arg ARCH=$(ARCH)
100101
build: docker-arch-build
101102

102103
.PHONY: rebuild
104+
rebuild: ARGS+=--build-arg ARCH=$(ARCH)
103105
rebuild: docker-arch-rebuild
104106

105107
.PHONY: push

build/skeleton/github/action_branch.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ name: __PROJECT___build
1616
on:
1717
push:
1818
paths:
19-
- 'tests/**'
2019
- '.github/workflows/__PROJECT__*.yml'
2120
- '!.github/workflows/__PROJECT___schedule.yml'
2221
- 'Dockerfiles/__PROJECT__/**'
23-
- '!Dockerfiles/__PROJECT__/README.md'
22+
- '!Dockerfiles/__PROJECT__/*.md'
23+
- 'tests/**'
24+
- 'Makefile'
2425

2526

2627
jobs:

build/skeleton/github/action_pull_request.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ name: __PROJECT___build
1616
on:
1717
pull_request:
1818
paths:
19-
- 'tests/**'
2019
- '.github/workflows/__PROJECT__*.yml'
2120
- '!.github/workflows/__PROJECT___schedule.yml'
2221
- 'Dockerfiles/__PROJECT__/**'
23-
- '!Dockerfiles/__PROJECT__/README.md'
22+
- '!Dockerfiles/__PROJECT__/*.md'
23+
- 'tests/**'
24+
- 'Makefile'
2425

2526

2627
jobs:

tests/bin/gen-readme.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,19 @@ get_modules() {
6262

6363
# Process module string into correct format for README.md
6464
PHP_MODULES="$( echo "${PHP_MODULES}" | grep -v '^Core' )" # Remove 'Core'
65+
# shellcheck disable=SC2001
6566
PHP_MODULES="$( echo "${PHP_MODULES}" | sed 's/^\[.*//g' )" # Remove PHP Modules headlines
6667
PHP_MODULES="${ALL_MODULES}${PHP_MODULES}" # Append all available modules
6768
PHP_MODULES="$( echo "${PHP_MODULES}" | sort -fu )" # Unique
6869
PHP_MODULES="$( echo "${PHP_MODULES}" | sed '/^\s*$/d' )" # Remove empty lines
6970
PHP_MODULES="$( echo "${PHP_MODULES}" | tr '\r\n' ',' )" # Newlines to commas
7071
PHP_MODULES="$( echo "${PHP_MODULES}" | tr '\n' ',' )" # Newlines to commas
7172
PHP_MODULES="$( echo "${PHP_MODULES}" | tr '\r' ',' )" # Newlines to commas
73+
# shellcheck disable=SC2001
7274
PHP_MODULES="$( echo "${PHP_MODULES}" | sed 's/^M/,/g' )" # Newlines to commas
75+
# shellcheck disable=SC2001
7376
PHP_MODULES="$( echo "${PHP_MODULES}" | sed 's/,,/,/g' )" # Remove PHP Modules headlines
77+
# shellcheck disable=SC2001
7478
PHP_MODULES="$( echo "${PHP_MODULES}" | sed 's/,/\n/g' )" # Back to newlines
7579
PHP_MODULES="$( echo "${PHP_MODULES}" | sort -fu )" # Unique
7680
PHP_MODULES="$( echo "${PHP_MODULES}" | sed '/^\s*$/d' )" # Remove empty lines

0 commit comments

Comments
 (0)