Skip to content

Commit e7e3d79

Browse files
committed
test
1 parent f91a5c6 commit e7e3d79

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/build-ova.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Build OVF Image
22

33
on:
4+
push:
5+
branches:
6+
- ova
47
workflow_dispatch:
58
inputs:
69
core_tag:
@@ -13,6 +16,9 @@ on:
1316
description: "defguard gateway image tag"
1417
required: true
1518

19+
env:
20+
DEFAULT_TAG: "2.0.0-alpha2"
21+
1622
jobs:
1723
build:
1824
runs-on: [self-hosted, Linux, X64]
@@ -62,9 +68,9 @@ jobs:
6268
run: |
6369
packer build \
6470
-var "iso_url=file://$PWD/ubuntu-24.04.4-live-server-amd64.iso" \
65-
-var "core_tag=${{ github.event.inputs.core_tag }}" \
66-
-var "proxy_tag=${{ github.event.inputs.proxy_tag }}" \
67-
-var "gateway_tag=${{ github.event.inputs.gateway_tag }}" \
71+
-var "core_tag=${{ github.event.inputs.core_tag || env.DEFAULT_TAG }}" \
72+
-var "proxy_tag=${{ github.event.inputs.proxy_tag || env.DEFAULT_TAG }}" \
73+
-var "gateway_tag=${{ github.event.inputs.gateway_tag || env.DEFAULT_TAG }}" \
6874
defguard.pkr.hcl
6975
7076
- name: Print OVA size

0 commit comments

Comments
 (0)