Skip to content

AppFlowy Web image build and push #4

AppFlowy Web image build and push

AppFlowy Web image build and push #4

Workflow file for this run

name: AppFlowy Web image build and push
on:
workflow_dispatch:
inputs:
appflowy_web_version:
description: 'AppFlowy Web version'
required: true
jobs:
appflowy_web_image:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-22.04
platform: linux/amd64
- os: ubuntu-22.04-arm
platform: linux/arm64
steps:
- name: Check out the repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push AppFlowy Web
run: |
export VERSION=${{ github.event.inputs.appflowy_web_version }}
export TAG=${VERSION#v}
docker buildx build --build-arg VERSION=${VERSION} --platform ${{ matrix.platform }} -t appflowyinc/appflowy_web:${TAG} -t appflowyinc/appflowy_web:latest -f docker/web/Dockerfile --push docker/web