mirror of
https://github.com/openziti/ziti.git
synced 2026-09-11 13:29:03 +00:00
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
name: Test CloudFront Proxy Function
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- release-v*
|
|
paths:
|
|
- 'dist/cloudfront/get.openziti.io/**'
|
|
|
|
# cancel older, redundant runs of same workflow on same branch
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test-cloudfront-proxy-function:
|
|
name: CloudFront Proxy Function Dry Run
|
|
if: github.repository_owner == 'openziti'
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Shallow checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Configure Python
|
|
shell: bash
|
|
run: |
|
|
pip install --requirement ./dist/cloudfront/get.openziti.io/requirements.txt
|
|
python --version
|
|
|
|
- name: Dry Run Deploy CloudFront Function for get.openziti.io
|
|
shell: bash
|
|
run: python ./dist/cloudfront/get.openziti.io/deploy-cloudfront-function.py --no-publish
|
|
env:
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
AWS_REGION: ${{ vars.AWS_REGION || secrets.AWS_REGION }}
|