Skip to content

Commit 9d918b1

Browse files
committed
feat: Multiplatform Build
1 parent 74b97af commit 9d918b1

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ jobs:
1414
steps:
1515
- name: Check out the repo
1616
uses: actions/checkout@v4
17+
1718
- name: Log in to Docker Hub
1819
uses: docker/login-action@v3
1920
with:
2021
username: ${{ secrets.DOCKER_USERNAME }}
2122
password: ${{ secrets.DOCKER_PASSWORD }}
23+
2224
- name: Extract metadata (tags, labels) for Docker
2325
id: meta
2426
uses: docker/metadata-action@v5
@@ -27,11 +29,18 @@ jobs:
2729
tags: |
2830
type=raw,value=latest
2931
type=semver,pattern={{version}}
32+
33+
- name: Set up QEMU
34+
uses: docker/setup-qemu-action@v3
35+
36+
- name: Set up Docker Buildx
37+
uses: docker/setup-buildx-action@v3
38+
3039
- name: Build and push Docker image
3140
uses: docker/build-push-action@v5
3241
with:
3342
context: .
3443
push: true
44+
platforms: linux/amd64,linux/arm64
3545
tags: ${{ steps.meta.outputs.tags }}
3646
labels: ${{ steps.meta.outputs.labels }}
37-

Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.21
1+
FROM alpine
22

33
LABEL maintainer="Scalified <[email protected]>"
44

@@ -10,10 +10,8 @@ RUN echo "SUPERVISOR VERSION: $(supervisord -v)"
1010

1111
RUN mkdir -p $SUPERVISOR_CONF_DIR
1212

13-
COPY usr/ /usr/
14-
COPY etc/ /etc/
13+
COPY rootfs /
1514

1615
VOLUME $SUPERVISOR_CONF_DIR
1716

18-
ENTRYPOINT entrypoint
19-
17+
ENTRYPOINT ["/usr/local/bin/entrypoint"]
File renamed without changes.

usr/local/bin/entrypoint renamed to rootfs/usr/local/bin/entrypoint

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ if [ -d "$INIT_DIR" ]; then
1515
fi
1616

1717
exec supervisord -c "$SUPERVISOR_CONF_FILE"
18-

usr/local/bin/ts-pipe renamed to rootfs/usr/local/bin/ts-pipe

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ import datetime
66
for line in sys.stdin:
77
now = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S,%f')[:-3]
88
print(f"{now} {line.strip()}", flush=True)
9-

0 commit comments

Comments
 (0)