Trellis - use .vault_pass #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |