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

GitHub Action

Deploy with Bacon

v1.3

Deploy with Bacon

cloud-lightning

Deploy with Bacon

Deploy DNS records with Bacon

Installation

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

              

- name: Deploy with Bacon

uses: jungaretti/bacon-deploy-action@v1.3

Learn more about this action in jungaretti/bacon-deploy-action

Choose a version

Bacon Deploy Action

Deploy DNS records with Bacon and GitHub Actions.

Usage

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.

Create encrypted repository secrets to store your Porkbun API keys and pass them to this action using ${{ secrets.YOUR_SECRET_NAME }}.

Basic Example

# .github/workflows/bacon-deploy.yaml

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

Parameters

Parameter Required/Optional Description
api-key Required Your Porkbun API key
secret-key Required Your Porkbun API secret key
config Required YAML config file for your DNS records
create Optional Flag to create new DNS records. Uses false by default.
delete Optional Flag to delete outdated DNS records. Uses false by default.
version Optional Version of Bacon to download and use. Uses latest by default.