Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
5FeetUnder authored Oct 17, 2023
1 parent df0811f commit a4cafdc
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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 }}

0 comments on commit a4cafdc

Please sign in to comment.