diff --git a/README.md b/README.md index 0d6fd20..9402047 100644 --- a/README.md +++ b/README.md @@ -21,10 +21,6 @@ This is a fork of [wirgen/portainer-stack-redeploy-action](https://github.com/wi ID of endpoint (environment). Required if your stack is not in local environment -### `repositoryAuthentication` - -Use stored credentials to pull docker-compose.yaml from git repository. When credentials are stored, but this is not set to `true`, the action will fail - ### `environment` Environment variables to set on the stack. When omitted, all existing variables will be cleared from the stack. Must be input as a JSON String; one array of objects each with the keys `name` and `value` diff --git a/action.yml b/action.yml index da3fd6d..f21e78f 100644 --- a/action.yml +++ b/action.yml @@ -16,16 +16,12 @@ inputs: description: 'Endpoint ID' required: false default: '' - repositoryAuthentication: - description: 'Use stored credentials to pull docker-compose.yaml from git repository' - required: false - default: false environment: description: 'Environment variables' required: false runs: - using: 'node20' + using: 'node16' main: 'dist/index.js' branding: diff --git a/dist/index.js b/dist/index.js index 147bf1f..f0f4914 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2825,7 +2825,6 @@ let portainerUrl = core.getInput("portainerUrl") const accessToken = core.getInput("accessToken") const stackId = parseInt(core.getInput("stackId")) const endpointId = parseInt(core.getInput("endpointId")) -const repositoryAuthentication = core.getInput("repositoryAuthentication") const environmentVariables = core.getInput("environment") if (isNaN(stackId)) { @@ -2856,10 +2855,6 @@ const postDataObject = { pullImage: true, } -if (repositoryAuthentication === true || repositoryAuthentication === 'true') { - postDataObject.repositoryAuthentication = true -} - if (environmentVariables !== undefined && environmentVariables !== "") { postDataObject.env = JSON.parse(environmentVariables) } diff --git a/index.js b/index.js index 19d693a..d97e028 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,6 @@ let portainerUrl = core.getInput("portainerUrl") const accessToken = core.getInput("accessToken") const stackId = parseInt(core.getInput("stackId")) const endpointId = parseInt(core.getInput("endpointId")) -const repositoryAuthentication = core.getInput("repositoryAuthentication") const environmentVariables = core.getInput("environment") if (isNaN(stackId)) { @@ -37,10 +36,6 @@ const postDataObject = { pullImage: true, } -if (repositoryAuthentication === true || repositoryAuthentication === 'true') { - postDataObject.repositoryAuthentication = true -} - if (environmentVariables !== undefined && environmentVariables !== "") { postDataObject.env = JSON.parse(environmentVariables) }