-
Notifications
You must be signed in to change notification settings - Fork 10
Support sync multiple files NGINX configuration to an NGINX for Azure deployment #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
487d139
multi-file config impl
bangbingsyb 37163e0
fix shell check errors
bangbingsyb 63b6f44
set default value if optional argument is missing
bangbingsyb baefb0e
Update root file path handling
bangbingsyb 80713d3
resolve shell check errors
bangbingsyb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,33 @@ | ||
name: 'NGINX configuration sync' | ||
description: 'The action synchronizes NGINX configuration from a Git repository to an NGINX deployment on Azure.' | ||
description: 'The action synchronizes NGINX configuration from a Git repository to an NGINX for Azure deployment.' | ||
inputs: | ||
subscription-id: | ||
description: 'The Azure subscription ID of the NGINX deployment' | ||
description: 'The Azure subscription ID of the NGINX for Azure deployment.' | ||
required: true | ||
resource-group-name: | ||
description: 'The resource group of the NGINX deployment' | ||
description: 'The resource group of the NGINX for Azure deployment.' | ||
required: true | ||
nginx-deployment-name: | ||
description: 'The name of the NGINX deployment' | ||
description: 'The name of the NGINX for Azure deployment.' | ||
required: true | ||
nginx-config-relative-file-path: | ||
description: 'The relative file path of the NGINX configuration file in the Git repository' | ||
nginx-config-directory-path: | ||
description: 'The NGINX configuration directory path relative to the root of the Git repository, example: "config/".' | ||
required: true | ||
default: './config/nginx.conf' | ||
nginx-root-config-file: | ||
description: > | ||
'The root NGINX configuration file path relative to the NGINX configuration directory in the Git repository, example: "nginx.conf".' | ||
required: false | ||
default: 'nginx.conf' | ||
transformed-nginx-config-directory-path: | ||
description: > | ||
'The transformed absolute path of the NGINX configuration directory in NGINX for Azure deployment, example: "/etc/nginx/". | ||
If the "include" directive in the NGINX configuration files uses absolute paths, the path transformation | ||
can be used to overwrite the file paths when the action synchronizes the files to the NGINX for Azure deployment.' | ||
required: false | ||
default: '' | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: 'Deploy configuration to the NGINX deployment in Azure' | ||
run: ${{github.action_path}}/src/deploy-config.sh ${{ inputs.subscription-id }} ${{ inputs.resource-group-name }} ${{ inputs.nginx-deployment-name }} ${{ inputs.nginx-config-relative-file-path }} | ||
- name: 'Synchronize NGINX configuration from the Git repository to an NGINX for Azure deployment' | ||
run: ${{github.action_path}}/src/deploy-config.sh ${{ inputs.subscription-id }} ${{ inputs.resource-group-name }} ${{ inputs.nginx-deployment-name }} ${{ inputs.nginx-config-directory-path }} ${{ inputs.nginx-root-config-file }} ${{ inputs.transformed-nginx-config-directory-path }} | ||
shell: bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.