Skip to content

Commit ba8f97c

Browse files
committed
Support linux/386 platform
1 parent b32d381 commit ba8f97c

5 files changed

Lines changed: 26 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,14 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
os: ["linux"]
27-
arch: ["amd64", "arm32v6", "arm32v7", "arm64v8", "ppc64le", "s390x"]
27+
arch:
28+
- amd64
29+
- arm32v6
30+
- arm32v7
31+
- arm64v8
32+
- i386
33+
- ppc64le
34+
- s390x
2835
runs-on: ubuntu-latest
2936
steps:
3037
- uses: actions/checkout@v3
@@ -58,7 +65,14 @@ jobs:
5865
fail-fast: false
5966
matrix:
6067
os: ["linux"]
61-
arch: ["amd64", "arm32v6", "arm32v7", "arm64v8", "ppc64le", "s390x"]
68+
arch:
69+
- amd64
70+
- arm32v6
71+
- arm32v7
72+
- arm64v8
73+
- i386
74+
- ppc64le
75+
- s390x
6276
runs-on: ubuntu-latest
6377
steps:
6478
- uses: actions/checkout@v3
@@ -145,6 +159,7 @@ jobs:
145159
linux-arm32v6 \
146160
linux-arm32v7 \
147161
linux-arm64v8 \
162+
linux-i386 \
148163
linux-ppc64le \
149164
linux-s390x
150165
do
@@ -166,6 +181,7 @@ jobs:
166181
${{ steps.version.outputs.group1 }}-linux-arm32v6
167182
${{ steps.version.outputs.group1 }}-linux-arm32v7
168183
${{ steps.version.outputs.group1 }}-linux-arm64v8
184+
${{ steps.version.outputs.group1 }}-linux-i386
169185
${{ steps.version.outputs.group1 }}-linux-ppc64le
170186
${{ steps.version.outputs.group1 }}-linux-s390x'
171187
if: ${{ steps.skip.outputs.no == 'true' }}

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ All user visible changes to this project will be documented in this file. This p
1414
### Added
1515

1616
- Support of `TZ` environment variable. ([#14])
17+
- Support of `linux/386` platform.
1718

1819
[#14]: /../../pull/14
1920

@@ -126,7 +127,7 @@ All user visible changes to this project will be documented in this file. This p
126127

127128
### Security updated
128129

129-
- [Alpine Linux] packages to fix [CVE-2021-3520] ([#9]).
130+
- [Alpine Linux] packages to fix [CVE-2021-3520]. ([#9])
130131

131132
[#9]: /../../issues/9
132133
[CVE-2021-3520]: https://avd.aquasec.com/nvd/cve-2021-3520
@@ -237,7 +238,7 @@ All user visible changes to this project will be documented in this file. This p
237238

238239
### Added
239240

240-
- Support of `linux/arm64`, `linux/arm/v6`, `linux/arm/v7`, `linux/ppc64le` and `linux/s390x` platforms ([#5]).
241+
- Support of `linux/arm64/v8`, `linux/arm/v6`, `linux/arm/v7`, `linux/ppc64le` and `linux/s390x` platforms. ([#5])
241242

242243
[#5]: /../../issues/5
243244

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ eq = $(if $(or $(1),$(2)),$(and $(findstring $(1),$(2)),\
1212
dockerify = $(strip $(if $(call eq,$(1),linux/arm32v6),linux/arm/v6,\
1313
$(if $(call eq,$(1),linux/arm32v7),linux/arm/v7,\
1414
$(if $(call eq,$(1),linux/arm64v8),linux/arm64/v8,\
15-
$(platform)))))
15+
$(if $(call eq,$(1),linux/i386), linux/386,\
16+
$(platform))))))
1617

1718

1819

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Rsync + SSH Docker image
2323

2424
## Supported platforms
2525

26-
- `linux`: `amd64`, `arm32v6`, `arm32v7`, `arm64v8`, `ppc64le`, `s390x`
26+
- `linux`: `amd64`, `arm32v6`, `arm32v7`, `arm64v8`, `i386`, `ppc64le`, `s390x`
2727

2828

2929

tests/main.bats

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
[ "$output" = "armv7l" ]
1515
elif [ "$PLATFORM" = "linux/arm64/v8" ]; then
1616
[ "$output" = "aarch64" ]
17+
elif [ "$PLATFORM" = "linux/386" ]; then
18+
[ "$output" = "x86_64" ]
1719
else
1820
[ "$output" = "$(echo $PLATFORM | cut -d '/' -f2-)" ]
1921
fi

0 commit comments

Comments
 (0)