Skip to content

Latest commit

 

History

History
45 lines (40 loc) · 1.2 KB

README.md

File metadata and controls

45 lines (40 loc) · 1.2 KB

Convox Exec Action

This Action runs a One-off Command in a running process. A typical use case of this action would be to run migrations or a similar pre-deploy or post-deploy command.

Inputs

rack

Required The name of the Convox Rack containing the app you wish to run the command against

app

Required The name of the app you wish to run the command against

service

Required The name of the service to run the command against

command

Required The command you wish to run

Example usage

steps:
- name: login
  id: login
  uses: convox/action-login@v2
  with:
    password: ${{ secrets.CONVOX_DEPLOY_KEY }}

- name: build
  id: build
  uses: convox/action-build@v1
  with:
    rack: staging
    app: myapp

- name: migrate
  id: migrate
  uses: convox/action-exec@v1
  with:
    rack: staging
    app: myapp
    service: web
    command: 'rails db:migrate'

- name: promote
  id: promote
  uses: convox/action-promote@v1
  with:
    rack: staging
    app: myapp