0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 09:14:46 +01:00
posthog/.github/workflows/auto-image.yml
Michael Matloka 49a15e9f53
Enhance and optimize PR GitHub workflows (#1365)
* Enhance and optimize GitHub workflows

* Prettier app.json

* Update YAML list

* Prettier workflows

* Include YAML in prettier runs

* Improve job naming

* Update E2E workflow name

* Prettier docker-compose YAML

* Update workflows

* Put freezegun into prod requirements

* Update workflow names

* Update workflow names again

* Update ci-backend.yml

* Update Lint with flake8

* Remove redundant eslint:ci script

* Revert "Put freezegun into prod requirements"

This reverts commit 460e3942d10194e9f46c8a2196ebd9ecc1f23c6f.

* Install freezegun in workflow and update dev.txt

* Prettier auto-image.yml

* Add "CI" to ci-* names

* Fix prettier:check

* Add missing SECRET_KEY

* Prettier 2 last files
2020-08-18 11:08:40 +02:00

25 lines
857 B
YAML

name: Create DigitalOcean Image
on:
push:
tags:
- '*.*.*'
jobs:
build:
name: Create and deploy DigitalOcean image
runs-on: ubuntu-20.04
steps:
- name: Build and deploy image
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}
run: |
wget https://releases.hashicorp.com/packer/1.6.0/packer_1.6.0_linux_amd64.zip
&& unzip packer_1.6.0_linux_amd64.zip
&& sudo mv packer /usr/bin/
&& sudo chmod +x /usr/bin/packer
&& git clone https://github.com/posthog/deployment.git \
&& cd deployment/packer/digitalocean/single_node \
&& packer build digitalocean.json