From a4cafdcbf2991d1660efab052a6a356443d7227b Mon Sep 17 00:00:00 2001 From: 5FeetUnder <15950507+5FeetUnder@users.noreply.github.com> Date: Tue, 17 Oct 2023 17:37:22 +0200 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 57 +++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..cefd7fc --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,57 @@ +name: Build Docker Image +run-name: Build ARM64 Image for Focalboard ${{ inputs.release_tag }} +on: + workflow_dispatch: + inputs: + release_tag: + description: "Focalboard tag" + required: true + default: "v7.11.3" + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + PLATFORMS: | + linux/arm/v7 + linux/arm/v8 + linux/arm64 + +jobs: + build-and-push-image: + runs-on: ubuntu-latest + + permissions: + contents: read + packages: write + + steps: + - + name: Get Focalboard Git Repo + uses: actions/checkout@v4.1.0 + with: + repository: 'mattermost/focalboard' + ref: ${{ inputs.release_tag }} + - + name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + platforms: ${{ env.PLATFORMS }} + - + name: Log in to the Container registry + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - + name: Build and push the image + uses: docker/build-push-action@v5 + with: + context: . + push: true + file: ./docker/Dockerfile + platforms: ${{ env.PLATFORMS }} + tags: latest,${{ inputs.release_tag }}