From 21f3bab5e9d0cacd0fd05e61b305e31c001da373 Mon Sep 17 00:00:00 2001 From: etwodev Date: Sun, 5 Oct 2025 04:50:01 +0100 Subject: [PATCH] chore: update releases [ci skip] --- .gitea/workflows/deploy.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 5a409dc..81aa2d5 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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 }}