Deploy DNS records to Porkbun with Bacon and GitHub Actions.
Sign into Porkbun's website and generate a new API keyset for your account. Read the "Generating API Keys" section of Porkbun's docs for more detailed instructions. Be sure to enable API access for the domain(s) that you would like to manage with Bacon.
Create encrypted repository secrets to store your Porkbun API keys and pass them to this action using ${{ secrets.YOUR_SECRET_NAME }}
.
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy DNS Records
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: jungaretti/bacon-deploy-action@v1
with:
api-key: ${{ secrets.PORKBUN_API_KEY }}
secret-key: ${{ secrets.PORKBUN_SECRET_KEY }}
config: example-com.yml
create: true
delete: true
See jungaretti/dns
for a more detailed example.
These inputs are required to use this action. You must provide them in your workflow file.
Your Porkbun API key. This input is required.
Your Porkbun API secret key. This input is required.
Path of a Bacon config file to deploy. This input is required.
These inputs are optional and have default values.
Flag to disable dry-run creations and create new records. The default value is false
.
Flag to disable dry-run deletions and delete outdated records. The default value is false
.
The version of Bacon to download and use. The default value is latest
. To use a specific release of Bacon, choose from the releases on jungaretti/bacon
and use the full tag name (e.g. v1.2
) as the value for this input.