From 5b2eb33268960d0d4d1d5c983601013ecec85b20 Mon Sep 17 00:00:00 2001 From: Romain Reignier Date: Mon, 26 Jul 2021 18:48:47 +0200 Subject: [PATCH] Add GH action to build multi-arch Docker image --- .github/workflows/image.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/image.yml diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml new file mode 100644 index 0000000..f718991 --- /dev/null +++ b/.github/workflows/image.yml @@ -0,0 +1,29 @@ +name: Build Docker Images + +on: + push: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Login to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v1 + - name: Build and push + id: docker_build + uses: docker/build-push-action@v2 + with: + push: true + tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pure-ftpd:latest + platforms: linux/amd64,linux/arm/v7,linux/arm64 +