-
Notifications
You must be signed in to change notification settings - Fork 46
plugin-ansible: Added adhoc and vault features to the plugin #59
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
Ompragash
merged 5 commits into
drone-plugins:master
from
vanisrikanithi:plugin-ansible
Jan 10, 2025
Merged
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f2a2d64
plugin-ansible: Added adhoc and vault features to the plugin
vanisrikanithi 4a1ca24
vault issue fix
vanisrikanithi af42771
change mode default to playbook
vanisrikanithi 4b3afa6
go version update
vanisrikanithi 9ae4cc2
updated the lint error
vanisrikanithi 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,10 +5,34 @@ LABEL maintainer="Drone.IO Community <[email protected]>" \ | |
| org.label-schema.vendor="Drone.IO Community" \ | ||
| org.label-schema.schema-version="1.0" | ||
|
|
||
| RUN apk add --no-cache bash git curl rsync openssh-client sshpass py3-pip py3-requests py3-paramiko python3-dev libffi-dev libressl-dev libressl build-base && \ | ||
| pip3 install -U pip && \ | ||
| pip3 install ansible-core==2.14 boto3==1.13.10 && \ | ||
| apk del --no-cache python3-dev libffi-dev libressl-dev build-base | ||
| # Install dependencies and create a virtual environment | ||
| RUN apk add --no-cache \ | ||
| bash \ | ||
| git \ | ||
| curl \ | ||
| rsync \ | ||
| openssh-client \ | ||
| sshpass \ | ||
| py3-pip \ | ||
| py3-requests \ | ||
| py3-paramiko \ | ||
| python3-dev \ | ||
| libffi-dev \ | ||
| libressl-dev \ | ||
| libressl \ | ||
| build-base && \ | ||
| python3 -m venv /opt/venv && \ | ||
| . /opt/venv/bin/activate && \ | ||
| pip install --no-cache-dir -U pip && \ | ||
| pip install --no-cache-dir ansible-core==2.14 boto3==1.13.10 && \ | ||
| deactivate && \ | ||
| apk del python3-dev libffi-dev libressl-dev build-base | ||
|
|
||
| ADD release/linux/amd64/drone-ansible /bin/ | ||
| ENTRYPOINT ["/bin/drone-ansible"] | ||
| # Set the PATH to include the virtual environment | ||
| ENV PATH="/opt/venv/bin:$PATH" | ||
|
|
||
| # Add the built binary to the image | ||
| COPY release/linux/amd64/drone-ansible /bin/ | ||
|
|
||
| # Define the entrypoint | ||
| ENTRYPOINT ["/bin/drone-ansible"] | ||
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set a default value to "playbook" here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ompragash Addressed the above comment, please check and confirm.
Tested Pipeline Link