Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
livecycle

GitHub Action

Preevy Down

v1.1.0

Preevy Down

livecycle

Preevy Down

Runs the Preevy `down` command

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Preevy Down

uses: livecycle/[email protected]

Learn more about this action in livecycle/preevy-down-action

Choose a version

Deploy preview environment using preevy

About Preevy

Preevy is a powerful CLI tool designed to simplify the process of creating ephemeral preview environments. Using Preevy, you can easily provision any Docker-Compose application on AWS using affordable Lightsail or Google Cloud VMs (support for more cloud providers is on the way).

Visit The full documentation here: https://preevy.dev/

About the preevy-down action

Use this action to stop and delete a preview environment using the Preevy CLI. More information about running Preevy from CI over here.

Inputs

profile-url

required: true

The profile url created by the CLI, as detailed in the docs.

args

required: false

Optional additional args to the preevy down command, see the full reference here.

Example usage

name: Teardown Preevy environment
on:
  pull_request:
    types:
      - closed
permissions:
  id-token: write
  contents: read
jobs:
  teardown:
    runs-on: ubuntu-latest
    steps:
      - uses: aws-actions/configure-aws-credentials@v2
        with:
          role-to-assume: arn:aws:iam::12345678:role/my-role
          aws-region: eu-west-1
      - uses: actions/checkout@v3
      - uses: livecycle/preevy-down-action@latest
        id: preevy
        with:
          profile-url: "s3://preevy-12345678-my-profile?region=eu-west-1"
          args: "-f ./docker/docker-compose.yaml"