🐳 CI Multi-Arch Docker builds
This commit is contained in:
parent
c34ba8e94c
commit
3753542dce
12
.github/workflows/image.yml
vendored
12
.github/workflows/image.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: Building cloudflare-ddns Docker image
|
||||
name: Build cloudflare-ddns Docker image (multi-arch)
|
||||
|
||||
on:
|
||||
push:
|
||||
@ -8,24 +8,22 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout code
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
# https://github.com/docker/setup-qemu-action
|
||||
- name: Setting up QEMU
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
# https://github.com/docker/setup-buildx-action
|
||||
- name: Setting up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
- name: Building the image
|
||||
- name: Build the image
|
||||
run: |
|
||||
docker buildx build \
|
||||
--tag timothyjmiller/cloudflare-ddns:latest \
|
||||
--platform linux/ppc64le,linux/s390x,linux/386,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/amd64 .
|
||||
- name: Login to DockerHub
|
||||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||
|
||||
# Reusing the cache, push the images
|
||||
- name: Run Buildx
|
||||
- name: Publish to DockerHub
|
||||
run: |
|
||||
docker buildx build \
|
||||
--platform linux/ppc64le,linux/s390x,linux/386,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/amd64 \
|
||||
|
||||
Reference in New Issue
Block a user