merge inhouse and non inhouse pipelines
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Refactoring
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- github-actions
- Ambito
- ci-cd, infrastructure
Direzione di ricerca
Confronta .github/workflows/create-kustomize-with-bratiska-cli-inhouse.yml con .github/workflows/create-kustomize-with-bratiska-cli.yml per identificare la logica della pipeline duplicata e la configurazione attuale del runner. Consolida i workflow in un unico file con un meccanismo chiaro di selezione del runner, quindi verifica che i percorsi di esecuzione GitHub e in-house siano ancora disponibili e che il workflow ridondante sia stato rimosso.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
'm starting to think that splitting this into two files wasn't the best idea. We are just copying the same code twice. Which goes directly against DRY principle.
My suggestion would be to keep just one file - .github/workflows/create-kustomize-with-bratiska-cli-inhouse.yml and drop "-inhouse" from the name. Then if you would like to run it on GitHub runners, you can just specify
runs-on: ['ubuntu-latest']
and it does the same thing and it is almost as many characters as specify "-bratiska-cli.yml" or "-bratiska-cli-inhouse.yml". Or, if you would like to be even more user friendly, you can just rework this into:
runs-on:
description: "Define environment where the job will run. Possible values: ['github', 'inhouse']"
type: choice
options:
- github
- inhouse
required: false
default: 'inhouse'
Then you can just have a basic step that makes that decision inside a pipeline
- name: Pick a runner
run: |
if [[ "${inputs.runs-on}" == "github" ]]; then
# print and set env variable
elif [[ "${inputs.runs-on}" == "inhouse" ]]; then
# print and set env variable
else
# throw an error about unknown runner environment
fi
This leaves the door open for multiple environments in the future and is still as user friendly as possible and you can easily switch just by specifying different input.
I'm flagging this here, as .github/workflows/create-kustomize-with-bratiska-cli-inhouse.yml and .github/workflows/create-kustomize-with-bratiska-cli.yml are new files and we can easily change it here. We don't have to make this change now for all of the files and all of the repositories. That can be pushed to latter PRs/changes.
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 0
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di bratislava/github-actions
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
bratislava/github-actions#25 ·
-
good first issue help wanted
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
bratislava/github-actions#24 ·
-
save kustomize as artifactApertaenhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
bratislava/github-actions#21 ·
-
refactor build kusotmizeApertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
bratislava/github-actions#20 ·
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
bratislava/github-actions#19 ·
Tutte le issue di bratislava/github-actions
Issue simili
-
agentic-workflows
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
self-care self-care:docs-build-time-investigator
Difficoltà 2/5 Mezza giornata Idoneità per principianti 76/100
githubnext/gh-aw-cao#14191 ·
I maintainer di solito rispondono entro 1 giorno
-
Client Service Attention Storage test-reliability
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Azure/azure-sdk-for-js#40107 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
backlog
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno