0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 09:16:49 +01:00
posthog/.github/workflows/auto-image.yml

21 lines
531 B
YAML

on:
push:
tags:
- '*.*.*'
name: Create DigitalOcean Image
jobs:
build:
name: Create and deploy DigitalOcean image
runs-on: hashicorp/packer:1.5.5
steps:
- name: Build and deploy Image
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}
run: |
git clone https://github.com/posthog/deployment.git \
&& cd deployment/packer/digitalocean/single_node \
&& packer build digitalocean.json