GithubHelp home page GithubHelp logo

isabella232 / relaysh-docker-update-workflow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from puppetlabs/relaysh-docker-update-workflow

0.0 0.0 0.0 31 KB

github actions for interacting with relay.sh

Dockerfile 2.63% Python 97.37%

relaysh-docker-update-workflow's Introduction

relaysh-docker-action

This github action will update and run a relay.sh workflow upon commit to a repo.

Usage

To use it, add a GitHub Actions workflow in the repo where you keep your Relay workflows.

name: update-and-run-workflow-on-commit

on:
  push:
    branches: [ main ]

  update:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
      with:
        fetch-depth: 0
    - uses: puppetlabs/relaysh-docker-update-workflow@main
      with:
        RELAY_USERNAME: ${{ secrets.RELAY_USERNAME }}
        RELAY_PASSWORD: ${{ secrets.RELAY_PASSWORD }}
        # OPTIONAL: see workflow_mappings section below
        RELAY_WORKFLOW: "relay-workflow-name"
        RELAY_WORKFLOW_FILE: "relay.yaml"
        # OPTIONAL: enables pointing the relay CLI at the local dev environment
        RELAY_HOST_API: "api.relay.sh"
        RELAY_HOST_UI: "ui.relay.sh"

The action's behavior is configurable based on the presence of a workflow_mappings.yaml configuration file in the root of the repository. This file's purpose is to map filenames inside the repository to workflow names as they exist on the Relay service. As such, it should be a list of maps, each with a name and file key, where name is the user-visible workflow name on the Relay service (i.e. displayed by relay workflow list) and file is the path and filename of the workflow YAML, relative to the repository root. See the workflow_mappings.yaml in this directory for an example.

relaysh-docker-update-workflow's People

Contributors

rick-a-lane-ii 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.