You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Preevy Down
v1.1.0
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/
Use this action to stop and delete a preview environment using the Preevy CLI. More information about running Preevy from CI over here.
required: true
The profile url created by the CLI, as detailed in the docs.
required: false
Optional additional args to the preevy down
command, see the full reference here.
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"