-
-
Notifications
You must be signed in to change notification settings - Fork 588
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
ci: enhance GitHub Actions for IPv6 and flexibility #303
Conversation
This file contains 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 a new CI job for testing IPv6 in GitHub Actions workflow - Update the Docker image version from `1.7.3` to `1.7.4` - Add a new `protocol` input parameter to the GitHub action with a default value of `tcp` - Change the GitHub action to use a composite run steps action instead of a Docker container - Update the `entrypoint.sh` script to use `bash` instead of `sh`, set stricter error handling, and add a function to detect client platform and architecture - Modify the `entrypoint.sh` script to download a specific version of `drone-ssh` based on the detected client info and execute it Signed-off-by: Bo-Yi Wu <[email protected]>
- Remove IPv6 ping command from CI workflow - Uncomment Docker run configuration in action.yml Signed-off-by: Bo-Yi Wu <[email protected]>
@muckelba I will take it. Thanks for your report. |
@muckelba I try the |
name: Create, publish and deploy a Docker image
on:
push:
branches:
- main
- develop
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ghcr.io/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
deploy:
runs-on: ubuntu-latest
needs: build-and-push-image
steps:
- name: SSH Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSHKEY }}
script: |
cd ${{ secrets.PATH }}_${{ github.ref_name }}
echo ${{ secrets.GITHUB_TOKEN }} | docker login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
docker compose pull && docker compose up -d this is my whole config |
Vylpes
pushed a commit
to Vylpes/card-drop
that referenced
this pull request
Oct 8, 2024
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [appleboy/ssh-action](https://github.com/appleboy/ssh-action) | action | minor | `v1.0.3` -> `v1.1.0` | --- ### Release Notes <details> <summary>appleboy/ssh-action (appleboy/ssh-action)</summary> ### [`v1.1.0`](https://github.com/appleboy/ssh-action/releases/tag/v1.1.0) [Compare Source](appleboy/ssh-action@v1.0.3...v1.1.0) ##### Changelog ##### Bug fixes - [`0c7561b`](appleboy/ssh-action@0c7561b): fix: switch to SSH key authentication for security ([@​appleboy](https://github.com/appleboy)) ##### Enhancements - [`9b978f0`](appleboy/ssh-action@9b978f0): chore: update SSH action version in README files ([@​appleboy](https://github.com/appleboy)) - [`1991c55`](appleboy/ssh-action@1991c55): chore(file): update target file ([@​appleboy](https://github.com/appleboy)) - [`aa293c2`](appleboy/ssh-action@aa293c2): chore: optimize system configuration and API integration ([@​appleboy](https://github.com/appleboy)) - [`036cad7`](appleboy/ssh-action@036cad7): chore: update drone-ssh to version 1.7.7 ([@​appleboy](https://github.com/appleboy)) - [`8b60782`](appleboy/ssh-action@8b60782): chore(cli): enhance version handling and testing mechanisms ([@​appleboy](https://github.com/appleboy)) - [`5ade826`](appleboy/ssh-action@5ade826): chore: improve CLI reliability and version visibility ([@​appleboy](https://github.com/appleboy)) - [`eaeb069`](appleboy/ssh-action@eaeb069): chore(cli): enhance curl command with silent mode and redirects ([@​appleboy](https://github.com/appleboy)) - [`58164d0`](appleboy/ssh-action@58164d0): chore: remove Dockerfile and related configurations ([@​appleboy](https://github.com/appleboy)) ##### Refactor - [`da612c8`](appleboy/ssh-action@da612c8): refactor: optimize CI pipeline for faster execution ([@​appleboy](https://github.com/appleboy)) ##### Build process updates - [`c781418`](appleboy/ssh-action@c781418): ci: enhance GitHub Actions for IPv6 and flexibility ([#​303](appleboy/ssh-action#303)) ([@​appleboy](https://github.com/appleboy)) - [`d2d6858`](appleboy/ssh-action@d2d6858): ci: enhance GitHub workflow for SSH actions and deployments ([@​appleboy](https://github.com/appleboy)) - [`551964e`](appleboy/ssh-action@551964e): ci: optimize GitHub Actions workflow configuration ([@​appleboy](https://github.com/appleboy)) - [`f916346`](appleboy/ssh-action@f916346): ci: refactor CI workflow and improve robustness ([#​320](appleboy/ssh-action#320)) ([@​appleboy](https://github.com/appleboy)) - [`aabaf12`](appleboy/ssh-action@aabaf12): ci: add bug report template ([@​appleboy](https://github.com/appleboy)) - [`c8594ae`](appleboy/ssh-action@c8594ae): ci: implement GitHub Actions for remote SSH execution ([@​appleboy](https://github.com/appleboy)) - [`40aad53`](appleboy/ssh-action@40aad53): ci: add SSH authentication setup for GitHub Actions ([@​appleboy](https://github.com/appleboy)) - [`0b0e770`](appleboy/ssh-action@0b0e770): ci: optimize and enhance SSH server workflow ([@​appleboy](https://github.com/appleboy)) - [`977b74a`](appleboy/ssh-action@977b74a): ci: enhance CI workflow with SSH job and optimizations ([@​appleboy](https://github.com/appleboy)) - [`2eeab5b`](appleboy/ssh-action@2eeab5b): ci: refactor GitHub Actions key management ([@​appleboy](https://github.com/appleboy)) - [`acd41e5`](appleboy/ssh-action@acd41e5): ci: enhance SSH job testing with varied key/password scenarios ([@​appleboy](https://github.com/appleboy)) - [`f05aefe`](appleboy/ssh-action@f05aefe): ci: enhance SSH action configuration and error handling ([@​appleboy](https://github.com/appleboy)) - [`e40b597`](appleboy/ssh-action@e40b597): ci: add GitHub Actions job for SSH key passphrase support ([@​appleboy](https://github.com/appleboy)) - [`15b64dc`](appleboy/ssh-action@15b64dc): ci: enhance CI pipeline with SSH key handling improvements ([@​appleboy](https://github.com/appleboy)) - [`a39b3cc`](appleboy/ssh-action@a39b3cc): ci: enhance CI/CD pipeline with SSH command execution ([@​appleboy](https://github.com/appleboy)) - [`815c574`](appleboy/ssh-action@815c574): ci: enhance deployment with multi-host SSH action ([@​appleboy](https://github.com/appleboy)) - [`378323e`](appleboy/ssh-action@378323e): ci: add multi-server support to CI workflow ([@​appleboy](https://github.com/appleboy)) - [`fc1c1fc`](appleboy/ssh-action@fc1c1fc): ci: add GitHub Actions job for [`ed25519`](appleboy/ssh-action@ed25519) key support ([@​appleboy](https://github.com/appleboy)) - [`f0e5a23`](appleboy/ssh-action@f0e5a23): ci: add environment variable handling in GitHub Actions ([@​appleboy](https://github.com/appleboy)) - [`9c32aa6`](appleboy/ssh-action@9c32aa6): ci: refactor workflows and API integrations ([@​appleboy](https://github.com/appleboy)) - [`97f8d75`](appleboy/ssh-action@97f8d75): ci: enable root access in CI pipeline ([@​appleboy](https://github.com/appleboy)) - [`5a8776f`](appleboy/ssh-action@5a8776f): ci: switch to password authentication in GitHub workflow ([@​appleboy](https://github.com/appleboy)) - [`b6941ae`](appleboy/ssh-action@b6941ae): ci: refactor codebase and optimize performance ([@​appleboy](https://github.com/appleboy)) - [`43895f2`](appleboy/ssh-action@43895f2): ci: refactor SSH testing workflows and job configurations ([@​appleboy](https://github.com/appleboy)) - [`06fa62e`](appleboy/ssh-action@06fa62e): ci: rename the workflow files. ([@​appleboy](https://github.com/appleboy)) - [`b4a07ca`](appleboy/ssh-action@b4a07ca): ci: enhance GitHub Actions with secret variable support ([#​330](appleboy/ssh-action#330)) ([@​appleboy](https://github.com/appleboy)) - [`25ce8cb`](appleboy/ssh-action@25ce8cb): ci: implement automated release workflow with GoReleaser ([@​appleboy](https://github.com/appleboy)) ##### Documentation updates - [`8a779a5`](appleboy/ssh-action@8a779a5): docs: describe true usage of allenvs parameter ([#​301](appleboy/ssh-action#301)) ([@​hussu010](https://github.com/hussu010)) - [`fe44be0`](appleboy/ssh-action@fe44be0): docs: improve documentation and CI robustness ([@​appleboy](https://github.com/appleboy)) - [`dd0f09c`](appleboy/ssh-action@dd0f09c): docs: improve README clarity and completeness ([@​appleboy](https://github.com/appleboy)) - [`71d43ea`](appleboy/ssh-action@71d43ea): docs: improve documentation and testing configurations ([@​appleboy](https://github.com/appleboy)) - [`28428a1`](appleboy/ssh-action@28428a1): docs: improve cross-platform clipboard support for key copying ([@​appleboy](https://github.com/appleboy)) - [`d732991`](appleboy/ssh-action@d732991): docs(lang): README.zh-cn Document ([#​332](appleboy/ssh-action#332)) ([@​astralwaveio](https://github.com/astralwaveio)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44MC4wIiwidXBkYXRlZEluVmVyIjoiMzguODAuMCIsInRhcmdldEJyYW5jaCI6ImRldmVsb3AiLCJsYWJlbHMiOlsidHlwZS9kZXBlbmRlbmNpZXMiXX0=--> Reviewed-on: https://git.vylpes.xyz/External/card-drop/pulls/374 Reviewed-by: Vylpes <[email protected]> Co-authored-by: Renovate Bot <[email protected]> Co-committed-by: Renovate Bot <[email protected]>
Vylpes
pushed a commit
to Vylpes/vylbot-app
that referenced
this pull request
Oct 28, 2024
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [appleboy/ssh-action](https://github.com/appleboy/ssh-action) | action | minor | `v1.0.3` -> `v1.1.0` | --- ### Release Notes <details> <summary>appleboy/ssh-action (appleboy/ssh-action)</summary> ### [`v1.1.0`](https://github.com/appleboy/ssh-action/releases/tag/v1.1.0) [Compare Source](appleboy/ssh-action@v1.0.3...v1.1.0) ##### Changelog ##### Bug fixes - [`0c7561b`](appleboy/ssh-action@0c7561b): fix: switch to SSH key authentication for security ([@​appleboy](https://github.com/appleboy)) ##### Enhancements - [`9b978f0`](appleboy/ssh-action@9b978f0): chore: update SSH action version in README files ([@​appleboy](https://github.com/appleboy)) - [`1991c55`](appleboy/ssh-action@1991c55): chore(file): update target file ([@​appleboy](https://github.com/appleboy)) - [`aa293c2`](appleboy/ssh-action@aa293c2): chore: optimize system configuration and API integration ([@​appleboy](https://github.com/appleboy)) - [`036cad7`](appleboy/ssh-action@036cad7): chore: update drone-ssh to version 1.7.7 ([@​appleboy](https://github.com/appleboy)) - [`8b60782`](appleboy/ssh-action@8b60782): chore(cli): enhance version handling and testing mechanisms ([@​appleboy](https://github.com/appleboy)) - [`5ade826`](appleboy/ssh-action@5ade826): chore: improve CLI reliability and version visibility ([@​appleboy](https://github.com/appleboy)) - [`eaeb069`](appleboy/ssh-action@eaeb069): chore(cli): enhance curl command with silent mode and redirects ([@​appleboy](https://github.com/appleboy)) - [`58164d0`](appleboy/ssh-action@58164d0): chore: remove Dockerfile and related configurations ([@​appleboy](https://github.com/appleboy)) ##### Refactor - [`da612c8`](appleboy/ssh-action@da612c8): refactor: optimize CI pipeline for faster execution ([@​appleboy](https://github.com/appleboy)) ##### Build process updates - [`c781418`](appleboy/ssh-action@c781418): ci: enhance GitHub Actions for IPv6 and flexibility ([#​303](appleboy/ssh-action#303)) ([@​appleboy](https://github.com/appleboy)) - [`d2d6858`](appleboy/ssh-action@d2d6858): ci: enhance GitHub workflow for SSH actions and deployments ([@​appleboy](https://github.com/appleboy)) - [`551964e`](appleboy/ssh-action@551964e): ci: optimize GitHub Actions workflow configuration ([@​appleboy](https://github.com/appleboy)) - [`f916346`](appleboy/ssh-action@f916346): ci: refactor CI workflow and improve robustness ([#​320](appleboy/ssh-action#320)) ([@​appleboy](https://github.com/appleboy)) - [`aabaf12`](appleboy/ssh-action@aabaf12): ci: add bug report template ([@​appleboy](https://github.com/appleboy)) - [`c8594ae`](appleboy/ssh-action@c8594ae): ci: implement GitHub Actions for remote SSH execution ([@​appleboy](https://github.com/appleboy)) - [`40aad53`](appleboy/ssh-action@40aad53): ci: add SSH authentication setup for GitHub Actions ([@​appleboy](https://github.com/appleboy)) - [`0b0e770`](appleboy/ssh-action@0b0e770): ci: optimize and enhance SSH server workflow ([@​appleboy](https://github.com/appleboy)) - [`977b74a`](appleboy/ssh-action@977b74a): ci: enhance CI workflow with SSH job and optimizations ([@​appleboy](https://github.com/appleboy)) - [`2eeab5b`](appleboy/ssh-action@2eeab5b): ci: refactor GitHub Actions key management ([@​appleboy](https://github.com/appleboy)) - [`acd41e5`](appleboy/ssh-action@acd41e5): ci: enhance SSH job testing with varied key/password scenarios ([@​appleboy](https://github.com/appleboy)) - [`f05aefe`](appleboy/ssh-action@f05aefe): ci: enhance SSH action configuration and error handling ([@​appleboy](https://github.com/appleboy)) - [`e40b597`](appleboy/ssh-action@e40b597): ci: add GitHub Actions job for SSH key passphrase support ([@​appleboy](https://github.com/appleboy)) - [`15b64dc`](appleboy/ssh-action@15b64dc): ci: enhance CI pipeline with SSH key handling improvements ([@​appleboy](https://github.com/appleboy)) - [`a39b3cc`](appleboy/ssh-action@a39b3cc): ci: enhance CI/CD pipeline with SSH command execution ([@​appleboy](https://github.com/appleboy)) - [`815c574`](appleboy/ssh-action@815c574): ci: enhance deployment with multi-host SSH action ([@​appleboy](https://github.com/appleboy)) - [`378323e`](appleboy/ssh-action@378323e): ci: add multi-server support to CI workflow ([@​appleboy](https://github.com/appleboy)) - [`fc1c1fc`](appleboy/ssh-action@fc1c1fc): ci: add GitHub Actions job for [`ed25519`](appleboy/ssh-action@ed25519) key support ([@​appleboy](https://github.com/appleboy)) - [`f0e5a23`](appleboy/ssh-action@f0e5a23): ci: add environment variable handling in GitHub Actions ([@​appleboy](https://github.com/appleboy)) - [`9c32aa6`](appleboy/ssh-action@9c32aa6): ci: refactor workflows and API integrations ([@​appleboy](https://github.com/appleboy)) - [`97f8d75`](appleboy/ssh-action@97f8d75): ci: enable root access in CI pipeline ([@​appleboy](https://github.com/appleboy)) - [`5a8776f`](appleboy/ssh-action@5a8776f): ci: switch to password authentication in GitHub workflow ([@​appleboy](https://github.com/appleboy)) - [`b6941ae`](appleboy/ssh-action@b6941ae): ci: refactor codebase and optimize performance ([@​appleboy](https://github.com/appleboy)) - [`43895f2`](appleboy/ssh-action@43895f2): ci: refactor SSH testing workflows and job configurations ([@​appleboy](https://github.com/appleboy)) - [`06fa62e`](appleboy/ssh-action@06fa62e): ci: rename the workflow files. ([@​appleboy](https://github.com/appleboy)) - [`b4a07ca`](appleboy/ssh-action@b4a07ca): ci: enhance GitHub Actions with secret variable support ([#​330](appleboy/ssh-action#330)) ([@​appleboy](https://github.com/appleboy)) - [`25ce8cb`](appleboy/ssh-action@25ce8cb): ci: implement automated release workflow with GoReleaser ([@​appleboy](https://github.com/appleboy)) ##### Documentation updates - [`8a779a5`](appleboy/ssh-action@8a779a5): docs: describe true usage of allenvs parameter ([#​301](appleboy/ssh-action#301)) ([@​hussu010](https://github.com/hussu010)) - [`fe44be0`](appleboy/ssh-action@fe44be0): docs: improve documentation and CI robustness ([@​appleboy](https://github.com/appleboy)) - [`dd0f09c`](appleboy/ssh-action@dd0f09c): docs: improve README clarity and completeness ([@​appleboy](https://github.com/appleboy)) - [`71d43ea`](appleboy/ssh-action@71d43ea): docs: improve documentation and testing configurations ([@​appleboy](https://github.com/appleboy)) - [`28428a1`](appleboy/ssh-action@28428a1): docs: improve cross-platform clipboard support for key copying ([@​appleboy](https://github.com/appleboy)) - [`d732991`](appleboy/ssh-action@d732991): docs(lang): README.zh-cn Document ([#​332](appleboy/ssh-action#332)) ([@​astralwaveio](https://github.com/astralwaveio)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44MC4wIiwidXBkYXRlZEluVmVyIjoiMzguODAuMCIsInRhcmdldEJyYW5jaCI6ImRldmVsb3AiLCJsYWJlbHMiOltdfQ==--> Reviewed-on: https://git.vylpes.xyz/RabbitLabs/vylbot-app/pulls/482 Reviewed-by: Vylpes <[email protected]> Co-authored-by: Renovate Bot <[email protected]> Co-committed-by: Renovate Bot <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
1.7.3
to1.7.4
protocol
input parameter to the GitHub action with a default value oftcp
entrypoint.sh
script to usebash
instead ofsh
, set stricter error handling, and add a function to detect client platform and architectureentrypoint.sh
script to download a specific version ofdrone-ssh
based on the detected client info and execute itfixed #146
reference: actions/runner-images#668