2019-11-22 17:27:40 +01:00
|
|
|
on: push
|
|
|
|
|
|
|
|
jobs:
|
2020-05-05 18:59:35 +02:00
|
|
|
lint:
|
2019-11-22 17:27:40 +01:00
|
|
|
runs-on: ubuntu-latest
|
2020-05-05 18:59:35 +02:00
|
|
|
name: Lint
|
2019-11-22 17:27:40 +01:00
|
|
|
steps:
|
2020-05-05 18:59:35 +02:00
|
|
|
- uses: actions/checkout@v2
|
2019-11-22 17:27:40 +01:00
|
|
|
- name: Lint shell script
|
2020-05-05 18:59:35 +02:00
|
|
|
uses: azohra/shell-linter@v0.3.0
|
2019-11-22 17:27:40 +01:00
|
|
|
with:
|
|
|
|
path: "entrypoint.sh"
|
2020-05-05 18:59:35 +02:00
|
|
|
publish:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Publish app
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Publish app
|
|
|
|
uses: ./
|
2019-11-22 17:27:40 +01:00
|
|
|
with:
|
|
|
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
|
|
environment: "production"
|
|
|
|
workingDirectory: 'test'
|
2020-05-05 18:59:35 +02:00
|
|
|
publish_legacy_credentials:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Publish app with legacy credentials
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Publish app
|
|
|
|
uses: ./
|
2019-11-22 17:27:40 +01:00
|
|
|
with:
|
|
|
|
apiKey: ${{ secrets.CLOUDFLARE_API_KEY }}
|
|
|
|
email: ${{ secrets.CLOUDFLARE_EMAIL }}
|
|
|
|
environment: "production"
|
|
|
|
workingDirectory: 'test'
|
2020-05-05 18:59:35 +02:00
|
|
|
publish_hardcoded_wrangler_version:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Publish app with hardcoded Wrangler version
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Publish app
|
|
|
|
uses: ./
|
2019-11-22 17:27:40 +01:00
|
|
|
with:
|
|
|
|
apiKey: ${{ secrets.CLOUDFLARE_API_KEY }}
|
|
|
|
email: ${{ secrets.CLOUDFLARE_EMAIL }}
|
|
|
|
environment: "production"
|
|
|
|
wranglerVersion: '1.5.0'
|
|
|
|
workingDirectory: 'test'
|
2020-06-22 17:02:00 +02:00
|
|
|
publish_secrets:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Publish app with secrets
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Publish app
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
|
|
environment: "production"
|
|
|
|
workingDirectory: "test"
|
|
|
|
secrets: |
|
|
|
|
SECRET1
|
|
|
|
SECRET2
|
|
|
|
env:
|
|
|
|
SECRET1: ${{ secrets.SECRET1 }}
|
|
|
|
SECRET2: ${{ secrets.SECRET2 }}
|