chore: update releases [ci skip]
This commit is contained in:
@@ -7,10 +7,6 @@ on:
|
||||
description: "Name of the Portainer stack to deploy"
|
||||
required: true
|
||||
type: string
|
||||
portainer-url:
|
||||
description: "Base URL of the Portainer API (e.g. https://portainer.example.com/api)"
|
||||
required: true
|
||||
type: string
|
||||
portainer-endpoint:
|
||||
description: "Portainer endpoint ID"
|
||||
required: true
|
||||
@@ -24,10 +20,6 @@ on:
|
||||
description: "Docker image name"
|
||||
required: true
|
||||
type: string
|
||||
registry-url:
|
||||
description: "Docker registry URL (e.g. ghcr.io)"
|
||||
required: true
|
||||
type: string
|
||||
secrets:
|
||||
REGISTRY_USERNAME:
|
||||
description: "Docker registry username"
|
||||
@@ -41,6 +33,12 @@ on:
|
||||
PORTAINER_TOKEN:
|
||||
description: "Portainer API token"
|
||||
required: true
|
||||
REGISTRY_URL:
|
||||
description: "Docker registry URL (e.g. ghcr.io)"
|
||||
required: true
|
||||
PORTAINER_URL:
|
||||
description: "Base URL of the Portainer API (e.g. https://portainer.example.com/api)"
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
# --------------------------------------------------------
|
||||
@@ -52,7 +50,7 @@ jobs:
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.CI_GITEA_TOKEN }}
|
||||
IMAGE_NAME: ${{ inputs.image-name }}
|
||||
REGISTRY_URL: ${{ inputs.registry-url }}
|
||||
REGISTRY_URL: ${{ secrets.REGISTRY_URL }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
@@ -104,7 +102,7 @@ jobs:
|
||||
needs: release
|
||||
env:
|
||||
IMAGE_NAME: ${{ inputs.image-name }}
|
||||
REGISTRY_URL: ${{ inputs.registry-url }}
|
||||
REGISTRY_URL: ${{ secrets.REGISTRY_URL }}
|
||||
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
steps:
|
||||
@@ -136,7 +134,7 @@ jobs:
|
||||
- name: Deploy stack via Portainer API
|
||||
uses: https://git.etwo.dev/actions/portable@v1
|
||||
with:
|
||||
portainer-url: ${{ inputs.portainer-url }}
|
||||
portainer-url: ${{ secrets.PORTAINER_URL }}
|
||||
portainer-token: ${{ secrets.PORTAINER_TOKEN }}
|
||||
portainer-endpoint: ${{ inputs.portainer-endpoint }}
|
||||
stack-name: ${{ inputs.stack-name }}
|
||||
|
||||
Reference in New Issue
Block a user