chore: update releases [ci skip]

This commit is contained in:
etwodev
2025-10-05 04:50:01 +01:00
parent 9f2145d860
commit 21f3bab5e9

View File

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