Giter Site home page Giter Site logo

alibaba-fc-build-action's Introduction

GitHub Actions status License

Alibaba Function Computer Build Action For Github Actions

Github action for building artifacts for compiled language runtime or installing dependencies for interpreted language runtime.

Prerequisites

You should be familiar with Alibaba FC and Serverless-Devs FC Component. For more information, see:

Usage

Currently, Alibaba Fcuntion Computer supports the following programming languages:

Language Type
Nodejs Interpreted
Python Interpreted
PHP Interpreted
Java Compiled
C# Compiled

If you want to build the target projects, you should input these projects seperated by space to projects varibale as follows:

    name: Check

    on:
      push:
        branches: [main]
      pull_request:
        branches: [main]

    jobs:
      build:
        name: Build target projects
        runs-on: ubuntu-latest
        steps:
        - name: Checkout
          uses: actions/checkout@v2

        - name: Initializing Serverless-Devs
          uses: Serverless-Devs/serverless-devs-initialization-action@main
          with:
            provider: alibaba
            AccessKeyID: ${{ secrets.ALIYUN_ACCESS_KEY_ID }}
            AccessKeySecret: ${{ secrets.ALIYUN_ACCESS_KEY_SECRET }}
            AccountID: ${{ secrets.ALIYUN_ACCOUNT_ID }}

        - name: Building
          uses: git-qfzhang/alibaba-fc-build-action@main
          with: 
            working_directory: ./test
            projects: 'ServerlessDevsNode10 ServerlessDevsJava8'

You should ignore projects variable or input * to projects varibale when building all projects:

    name: build fc function

    on:
      push:
        branches: [main]
      pull_request:
        branches: [main]

    jobs:
      build:
        name: Build all projects
        runs-on: ubuntu-latest
        steps:
        - name: Checkout
          uses: actions/checkout@v2

        - name: Initializing Serverless-Devs
          uses: Serverless-Devs/serverless-devs-initialization-action@main
          with:
            provider: alibaba
            AccessKeyID: ${{ secrets.ALIYUN_ACCESS_KEY_ID }}
            AccessKeySecret: ${{ secrets.ALIYUN_ACCESS_KEY_SECRET }}
            AccountID: ${{ secrets.ALIYUN_ACCOUNT_ID }}

        - name: Building
          uses: git-qfzhang/alibaba-fc-build-action@main
          with: 
            working_directory: ./test

The application of alibaba-fc-build-action can refer to Serverless CI/CD.

Serverless-Devs/serverless-devs-initialization-action is the precondition of the building action, more information can refer to here.

Input variables

See action.yml for the full documentation for this action's inputs.

  • working_directory - the directory containing template.yml/template.yaml which could refer to here.

  • projects - target projects which are delimited by space. The default * represents all projects.

License Summary

This code is made available under the MIT license.

alibaba-fc-build-action's People

Contributors

santihong avatar squatstonight avatar

Watchers

 avatar

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.