Skip to content

Commit d523294

Browse files
authored
Merge pull request #6 from gizmoguy/master
Use github actions + docker buildx for building multi-arch images.
2 parents ff7c0d2 + 7ac9b05 commit d523294

5 files changed

Lines changed: 42 additions & 12 deletions

File tree

.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/base:${{ github.event.release.tag_name }} \
28+
--tag faucet/base: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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
## Image name: faucet/base
22

3-
FROM alpine:3.10
3+
FROM alpine:3.10.5
4+
45
RUN apk add --no-cache bash su-exec
6+
57
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
8+
69
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]

Dockerfile.pi

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

README.rst

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

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

hooks/pre_build

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

0 commit comments

Comments
 (0)