GithubHelp home page GithubHelp logo

deploy-action's Introduction

Opta Deploy

Deploy your docker container using opta.

Table of Contents

Usage

Add the following step to your workflow:

- name: Update deployment
  uses: run-x/[email protected]
  with:
    env: runx-staging
    image: app:latest
    tag: ${{ github.sha }}

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

Authentication

In order for the deploy action to execute properly, you will need to use other github actions for authentication.

  1. webfactory/ssh-agent, to allow access to other repositories' opta configuration files. Note that you only need to use this if you have opta.yml files in other repos.
  2. aws-actions/configure-aws-credentials, to allow push and deploy to AWS. Make sure that the API key associated with this account has admin permissions.
# You only need to include this step if you have opta files outside of this repo
- name: Setup ssh
  uses: webfactory/[email protected]
  with:
    # if you don't have a github SSH key, you can generate one here: 
    # https://docs.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
    ssh-private-key: ${{ secrets.GITHUB_SSH_KEY }}

- name: Configure AWS credentials	
  uses: aws-actions/configure-aws-credentials@v1	
  with:	
    # This aws account should have admin permissions
    aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}	
    aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}	
    aws-region: us-east-1	

Complete Example

See example.yml.

deploy-action's People

Contributors

ankurd1 avatar juandiegopalomino avatar kevjin avatar nitinagg avatar quinnngo 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.