Skip to content

Trellis - use .vault_pass #3

Trellis - use .vault_pass

Trellis - use .vault_pass #3

Workflow file for this run

# Uncomment this deploy job in this file to use the
# https://github.com/roots/setup-trellis-cli GitHub Action
# for deploying this repo to production when pushing to main.
#
# Make sure you've set up the following secrets in your repo:
# - TRELLIS_DEPLOY_SSH_PRIVATE_KEY
# - TRELLIS_DEPLOY_SSH_KNOWN_HOSTS
# - ANSIBLE_VAULT_PASSWORD
name: Deploy site
on:
workflow_dispatch:
push:
branches: [main]
jobs:
example:
runs-on: ubuntu-latest
steps:
- name: Example deploy job
run: echo "This is an example deploy job. Uncomment the deploy job in .github/workflows/deploy.yml to use the roots/setup-trellis-cli GitHub Action for deploying this repo to production when pushing to main."
# deploy:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: '16'
# cache: yarn
# cache-dependency-path: yarn.lock
# - uses: shimataro/ssh-key-action@v2
# with:
# key: ${{ secrets.TRELLIS_DEPLOY_SSH_PRIVATE_KEY }}
# known_hosts: ${{ secrets.TRELLIS_DEPLOY_SSH_KNOWN_HOSTS }}
# - uses: webfactory/[email protected]
# with:
# ssh-private-key: ${{ secrets.TRELLIS_DEPLOY_SSH_PRIVATE_KEY }}
# - uses: roots/setup-trellis-cli@main
# with:
# ansible-vault-password: ${{ secrets.ANSIBLE_VAULT_PASSWORD }}
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# - name: Deploy
# run: cd trellis && trellis deploy production