Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
ci: push docker image to Docker Hub
Pablo Castellanocea62a5c8ece
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex ff263154fd..0a923763d5 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -35,13 +35,13 @@ jobs:build-linux-x86:runs-on: ubuntu-latestneeds: create-release- env:+ env:LINUX_APP_RELEASE_PATH: frontend/app_flowy/product/${{ github.ref_name }}/linux/ReleaseLINUX_ZIP_NAME: AppFlowy-linux-x86.tar.gzsteps:- name: Checkoutuses: actions/checkout@v2-+- name: Setup environment - Rust and Cargouses: actions-rs/toolchain@v1with:@@ -62,13 +62,13 @@ jobs:cargo install --force cargo-makecargo install --force duckscript_clicargo make flowy_dev-+- name: Build Linux appworking-directory: frontendrun: |flutter config --enable-linux-desktopcargo make --profile production-linux-x86 appflowy-+- name: Upload Release Assetid: upload-release-assetuses: actions/upload-release-asset@v1@@ -83,7 +83,7 @@ jobs:build-macos-x86_64:runs-on: macos-latestneeds: create-release- env:+ env:MACOS_APP_RELEASE_PATH: frontend/app_flowy/product/${{ github.ref_name }}/macos/ReleaseMACOS_X86_ZIP_NAME: Appflowy-macos-x86_64.zipsteps:@@ -94,7 +94,7 @@ jobs:uses: actions-rs/toolchain@v1with:toolchain: stable-+- name: Setup environment - Flutteruses: subosito/flutter-action@v2with:@@ -107,17 +107,17 @@ jobs:cargo install --force cargo-makecargo install --force duckscript_clicargo make flowy_dev-+- name: Build macOS app for x86_64working-directory: frontendrun: |flutter config --enable-macos-desktopcargo make --profile production-mac-x86 appflowy-+- name: Archive macOS appworking-directory: ${{ env.MACOS_APP_RELEASE_PATH }}run: zip -qr ${{ env.MACOS_X86_ZIP_NAME }} AppFlowy.app-+- name: Upload Release Assetuses: actions/upload-release-asset@v1env:@@ -126,4 +126,4 @@ jobs:upload_url: ${{ needs.create-release.outputs.upload_url }}asset_path: ${{ env.MACOS_APP_RELEASE_PATH }}/${{ env.MACOS_X86_ZIP_NAME }}asset_name: ${{ env.MACOS_X86_ZIP_NAME }}- asset_content_type: application/octet-stream\ No newline at end of file+ asset_content_type: application/octet-streamdiff --git a/.github/workflows/release_docker.yml b/.github/workflows/release_docker.ymlnew file mode 100644index 0000000000..2e8f6abe37--- /dev/null+++ b/.github/workflows/release_docker.yml@@ -0,0 +1,35 @@+name: release_docker++on:+ push:+ branches:+ - 'main'+ tags:+ - '*'++jobs:+ build-docker-image:+ 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 Docker Buildx+ uses: docker/setup-buildx-action@v1++ - name: Build and push+ uses: docker/build-push-action@v2+ with:+ context: .+ file: ./frontend/scripts/docker-buildfiles/Dockerfile+ builder: ${{ steps.buildx.outputs.name }}+ push: true+ tags: ${{ secrets.DOCKER_HUB_USERNAME }}/appflowy:${{ github.ref_name }}+ cache-from: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/appflawy:buildcache+ cache-to: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/appflawy:buildcache,mode=max