File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 - name : Install dependencies
3535 run : |
3636 sudo apt-get update -qq
37- sudo apt-get install -y --no-install-recommends ovmf
37+ sudo apt-get install -y --no-install-recommends ovmf awscli
3838
3939 - name : Check KVM availability
4040 run : |
7575 -var "gateway_tag=${{ github.event.inputs.gateway_tag || env.DEFAULT_TAG }}" \
7676 defguard.pkr.hcl
7777
78- - name : Print OVA size
79- run : ls -lh output/defguard/defguard.ova
78+ - name : Upload OVA to S3
79+ env :
80+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
81+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
82+ AWS_DEFAULT_REGION : eu-central-1
83+ CORE_TAG : ${{ github.event.inputs.core_tag || env.DEFAULT_TAG }}
84+ PROXY_TAG : ${{ github.event.inputs.proxy_tag || env.DEFAULT_TAG }}
85+ GATEWAY_TAG : ${{ github.event.inputs.gateway_tag || env.DEFAULT_TAG }}
86+ run : |
87+ TIMESTAMP=$(date +%Y%m%d-%H%M%S)
88+ FILENAME="defguard_${TIMESTAMP}_core-${CORE_TAG}_edge-${PROXY_TAG}_gateway-${GATEWAY_TAG}.ova"
89+ ls -lh output/defguard/defguard.ova
90+ aws s3 cp output/defguard/defguard.ova "s3://defguard-downloads/ova/${FILENAME}"
91+ echo "Uploaded: s3://defguard-downloads/ova/${FILENAME}"
You can’t perform that action at this time.
0 commit comments