mirror of
https://github.com/openziti/ziti.git
synced 2026-10-08 05:41:20 +00:00
22965cf00a
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
name: Test CloudFront Proxy Function
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches:
|
|
- release-next
|
|
- 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-latest
|
|
steps:
|
|
- name: Shallow checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- 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 }}
|