Consolidated actions and variables
This commit is contained in:
@@ -8,25 +8,12 @@ inputs:
|
||||
slug:
|
||||
required: true
|
||||
description: Branch slug to clean up
|
||||
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
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Remove 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 }}
|
||||
run: |
|
||||
bash ${{ github.action_path }}/../scripts/pangolin-delete.sh \
|
||||
--resource-name "${{ inputs.app-name }}-${{ inputs.slug }}"
|
||||
@@ -37,4 +24,4 @@ runs:
|
||||
CONTAINER="${{ inputs.app-name }}-${{ inputs.slug }}"
|
||||
docker stop "$CONTAINER" 2>/dev/null || true
|
||||
docker rm "$CONTAINER" 2>/dev/null || true
|
||||
docker rmi "${{ inputs.app-name }}:${{ inputs.slug }}" 2>/dev/null || true
|
||||
docker rmi "${{ inputs.app-name }}:${{ inputs.slug }}" 2>/dev/null || true
|
||||
|
||||
Reference in New Issue
Block a user