GithubHelp home page GithubHelp logo

baskrahmer / appwrite-cd Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 4 KB

Continuous deployment for Appwrite servers

Home Page: https://github.com/marketplace/actions/deploy-appwrite

License: MIT License

appwrite cd github-actions iac

appwrite-cd's Introduction

Deploy Appwrite using GitHub Actions

Installs the CLI and uses appwrite deploy collection to synchronise the state in appwrite.json with the one deployed to your server. This action is an extension of the official setup-for-actions project.

Configuration

The following input variables are required:

  • endpoint: Where your server is hosted (e.g. https://[HOSTNAME_OR_IP]/v1)
  • project: Project ID (found in dashboard, 20 characters by default)
  • id: API key with at least Database permissions (can be generated in console, e.g. ${{ secrets.APPWRITE_API_KEY }})

The following input variable is optional:

  • root_dir: Directory where the appwrite.json file is located (default: ./appwrite)

Prerequisites

You need to have a valid appwrite.json file under version control, located in the specified directory. This file cannot have the projectId field set, as this is overwritten depending on the configured value. The projectName field is ignored. Below is an example appwrite.json file:

{
    "projectId": "",
    "projectName": "",
    "databases": [
        {
            "$id": "sampleDB",
            "name": "SampleDatabase",
            "$createdAt": "2023-01-01T12:00:00.000+00:00",
            "$updatedAt": "2023-01-01T12:00:00.000+00:00",
            "enabled": true
        }
    ],
    "collections": [
        {
            "$id": "sampleCollection",
            "$permissions": [],
            "databaseId": "sampleDB",
            "name": "SampleCollection",
            "enabled": true,
            "documentSecurity": false,
            "attributes": [],
            "indexes": []
        }
    ]
}

Extensions

The CLI also exports deployment of buckets, collections and teams. If you want these supported, feel free to submit a PR.

appwrite-cd's People

Contributors

baskrahmer avatar xuelink avatar

Watchers

 avatar

Forkers

xuelink

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.