Giter VIP home page Giter VIP logo

edgex-launchpad-build-action's Introduction

edgex-launchpad-build-action

This is a Github Action which is used by the edgex-sync GitHub Workflows.

It is used to request a build of an EdgeX snap on Launchpad.

Example of using this action in a workflow:

  build-launchpad:
    runs-on: ubuntu-latest
    needs: test-snap
    steps:
      - name: Kick off Launchpad build
        uses: canonical/[email protected]
        with:
          snap_name: "edgexfoundry"
          architecture: amd64
          consumer_name: ${{ secrets.LP_CONSUMER_NAME }}
          access_token: ${{ secrets.LP_ACCESS_TOKEN }}
          access_secret: ${{ secrets.LP_ACCESS_SECRET }}

Refer to action.yml to find the list of supported input arguments.

Secrets

The three secrets used to connect to Launchpad, consumer_name, access_token and access_secret should be generated and stored as Github Secrets.

To regenerate the secrets, do the following:

  • Run create-lp-credentals.py Python script locally.
  • It will prompt you to log into Launchpad
  • A credentials file will be generated with the secrets. Use the contents of that file (consumer_key, access_token, access_secret) to create the Github secrets. Consumer key should be used as the consumer name.

Note that to generate the credentials you need to be member of a Launchpad team with full access to the snap recipes, such as the Canonical EdgeX Team

Run locally

CONSUMER_NAME="" ACCESS_TOKEN="" ACCESS_SECRET="" SNAP_NAME="" ARCH=amd64 UBUNTU_SERIES=focal python request-build.py

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.