Skip to content
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

Github action running cicd pipeline with already existing/provided credentials azure machine #277

Open
cbr7 opened this issue Nov 25, 2024 · 2 comments · Fixed by #292
Open
Assignees
Labels
enhancement New feature or request windows

Comments

@cbr7
Copy link
Contributor

cbr7 commented Nov 25, 2024

It would be good to have some way to execute cicd pipelines on an already existing/not spot instance azure machine by providing the IP and login credentials to the job and the job connecting to the machine instead of creating a spot instance. This would have several benefits, it would allow test debugging to be much faster, since we would no longer have to wait for spot instance availability during test debugging and also allow manual connection to the azure instance in order to observe/investigate issues locally on the machine.

@cbr7 cbr7 added enhancement New feature or request windows labels Nov 25, 2024
@odockal
Copy link
Contributor

odockal commented Nov 25, 2024

Possible approach:

  • Have a job without Create and destroy windows machine step that runs on workflow_dispatch and accepts host (password passed via inputs does not seems like secure option) via input param with other inputs (as usual: branch, fork, repo, etc.) and that uses a gh repo secret (see below) REMOTE_SSH and possibly REMOTE_PASS
  • Create machine manually/locally (gets host, pass, etc.)
  • Use the secrets produced and update the gh repo secrets
  • Run the above workflow to debug on particular machine without a need to wait for machine to spin up
  • Finish you debugging
  • Destroy windows machine locally

@odockal odockal self-assigned this Jan 9, 2025
@odockal odockal moved this to 📅 Planned in Podman Desktop Planning Jan 9, 2025
@github-project-automation github-project-automation bot moved this from 📅 Planned to ✔️ Done in Podman Desktop Planning Jan 9, 2025
@odockal odockal moved this from ✔️ Done to 🚥 In Review in Podman Desktop Planning Jan 9, 2025
@odockal
Copy link
Contributor

odockal commented Jan 9, 2025

The issue can be closed once we verify that the workflow works as expected. Workflow is at place, so we can actually test it.

@odockal odockal reopened this Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants