Consolidated actions and variables
This commit is contained in:
@@ -17,32 +17,14 @@ inputs:
|
||||
description: Port the app listens on inside the container
|
||||
environment:
|
||||
required: true
|
||||
description: Node environment name ("production" or "preview")
|
||||
description: Environment name ("production" or "preview")
|
||||
subdomain:
|
||||
required: true
|
||||
description: Subdomain for Pangolin resource
|
||||
target-ip:
|
||||
required: true
|
||||
description: Target IP for Pangolin
|
||||
build-args:
|
||||
required: false
|
||||
default: ""
|
||||
description: Extra docker build args (space-separated KEY=VALUE pairs)
|
||||
pangolin-api-url:
|
||||
required: true
|
||||
description: Base URL for the Pangolin API (https://api.pangolin.local)
|
||||
pangolin-api-key:
|
||||
required: true
|
||||
description: Pangolin API key
|
||||
pangolin-org-id:
|
||||
required: true
|
||||
description: Pangolin organization ID
|
||||
pangolin-domain-id:
|
||||
required: true
|
||||
description: Pangolin domain ID
|
||||
pangolin-site-id:
|
||||
required: true
|
||||
description: Pangolin site ID
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
@@ -71,15 +53,9 @@ runs:
|
||||
|
||||
- name: Register Pangolin resource
|
||||
shell: bash
|
||||
env:
|
||||
PANGOLIN_API_URL: ${{ inputs.pangolin-api-url }}
|
||||
PANGOLIN_API_KEY: ${{ inputs.pangolin-api-key }}
|
||||
PANGOLIN_ORG_ID: ${{ inputs.pangolin-org-id }}
|
||||
PANGOLIN_DOMAIN_ID: ${{ inputs.pangolin-domain-id }}
|
||||
PANGOLIN_SITE_ID: ${{ inputs.pangolin-site-id }}
|
||||
run: |
|
||||
bash ${{ github.action_path }}/../scripts/pangolin-upsert.sh \
|
||||
--subdomain "${{ inputs.subdomain }}" \
|
||||
--port "${{ inputs.port }}" \
|
||||
--resource-name "${{ inputs.app-name }}-${{ inputs.tag }}" \
|
||||
--target-ip "${{ inputs.target-ip }}"
|
||||
--target-ip "$PANGOLIN_TARGET_IP"
|
||||
|
||||
Reference in New Issue
Block a user