Skip to content

Commit

Permalink
Merge pull request #6 from gizmoguy/master
Browse files Browse the repository at this point in the history
Use github actions + docker buildx for building multi-arch images.
  • Loading branch information
gizmoguy authored May 4, 2020
2 parents ff7c0d2 + 7ac9b05 commit d523294
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 12 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release workflow

on:
release:
types:
- published

jobs:
docker-image:
name: "Build docker image"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up docker buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
buildx-version: latest
qemu-version: latest
- name: Login to docker registry
run: |
docker login --username ${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_TOKEN }}
- name: Run buildx
run: |
docker buildx build \
--tag faucet/base:${{ github.event.release.tag_name }} \
--tag faucet/base:latest \
--platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x \
--output "type=registry" \
--file Dockerfile \
.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
## Image name: faucet/base

FROM alpine:3.10
FROM alpine:3.10.5

RUN apk add --no-cache bash su-exec

COPY entrypoint.sh /usr/local/bin/entrypoint.sh

ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
6 changes: 0 additions & 6 deletions Dockerfile.pi

This file was deleted.

7 changes: 6 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@ Built images are available on Docker Hub so that you don't need to build your ow
Images are available for the following architectures:

* `amd64 <https://hub.docker.com/r/faucet/base/>`_
* `armhf (for raspberry pi) <https://hub.docker.com/r/faucet/base-pi/>`_
* `386 <https://hub.docker.com/r/faucet/base/>`_
* `arm/v6 <https://hub.docker.com/r/faucet/base/>`_
* `arm/v7 <https://hub.docker.com/r/faucet/base/>`_
* `arm64/v8 <https://hub.docker.com/r/faucet/base/>`_
* `ppc64le <https://hub.docker.com/r/faucet/base/>`_
* `s390x <https://hub.docker.com/r/faucet/base/>`_
4 changes: 0 additions & 4 deletions hooks/pre_build

This file was deleted.

0 comments on commit d523294

Please sign in to comment.