Skip to content

Commit 7fa0565

Browse files
committed
Use github actions + docker buildx for building multi-arch images.
1 parent fad2401 commit 7fa0565

File tree

5 files changed

+39
-17
lines changed

5 files changed

+39
-17
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release workflow
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
docker-image:
10+
name: "Build docker image"
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v1
15+
- name: Set up docker buildx
16+
id: buildx
17+
uses: crazy-max/ghaction-docker-buildx@v1
18+
with:
19+
buildx-version: latest
20+
qemu-version: latest
21+
- name: Login to docker registry
22+
run: |
23+
docker login --username ${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_TOKEN }}
24+
- name: Run buildx
25+
run: |
26+
docker buildx build \
27+
--tag faucet/python3:${{ github.event.release.tag_name }} \
28+
--tag faucet/python3:latest \
29+
--platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x \
30+
--output "type=registry" \
31+
--file Dockerfile \
32+
.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Image name: faucet/python3
22

3-
FROM faucet/base:4.0.0
3+
FROM faucet/base:5.0.0
44

55
RUN apk add --no-cache python3 && \
66
python3 -m ensurepip && \

Dockerfile.pi

Lines changed: 0 additions & 11 deletions
This file was deleted.

README.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,9 @@ Built images are available on Docker Hub so that you don't need to build your ow
1111
Images are available for the following architectures:
1212

1313
* `amd64 <https://hub.docker.com/r/faucet/python3/>`_
14-
* `armhf (for raspberry pi) <https://hub.docker.com/r/faucet/python3-pi/>`_
14+
* `386 <https://hub.docker.com/r/faucet/python3/>`_
15+
* `arm/v6 <https://hub.docker.com/r/faucet/python3/>`_
16+
* `arm/v7 <https://hub.docker.com/r/faucet/python3/>`_
17+
* `arm64/v8 <https://hub.docker.com/r/faucet/python3/>`_
18+
* `ppc64le <https://hub.docker.com/r/faucet/python3/>`_
19+
* `s390x <https://hub.docker.com/r/faucet/python3/>`_

hooks/pre_build

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)