-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.07 KB
/
build-do.yml
File metadata and controls
41 lines (38 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
name: Build (DigitalOcean)
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
packer-digitalocean:
runs-on: ubuntu-latest
name: packer-digitalocean
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Install ansible
env:
DO_API_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}
run: |
pip install poetry
poetry install
./vendor/ansible-wrapper.sh --version
./vendor/ansible-wrapper.sh vendor/digitalocean/pre-build.yaml
- name: Install ansible roles
run: |
poetry run ansible-galaxy install -p ./roles -r requirements.yml --verbose
- uses: hashicorp/setup-packer@main
with:
version: "latest"
- run: packer init .
- run: packer validate -syntax-only .
- run: packer build -color=false -force .
env:
AUTHENTIK_VERSION: 2025.2.0
DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}