devcontainers / devcontainers/ci
Suggestions to simplify image prebuilding
- Lingua principale
- TypeScript
- Stelle
- 496
- Fork
- 101
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
In my case, I am using this action to pre-build an image I then use in codespaces and remote - containers. I do this on a periodic basis for security, and do not need to execute anything in the container.
I was expecting to be able to do this:
```yaml
- name: Build image
uses: devcontainers/ci@v0.2
with:
imageName: ghcr.io/chuxel/devpacks/devcontainer
```
However, what I ended up needing to do was this:
```yaml
- name: Build image
uses: devcontainers/ci@v0.2
with:
imageName: ghcr.io/chuxel/devpacks/devcontainer
skipContainerUserIdUpdate: true
push: always
runCmd: echo "Image built successfully."
```
Would it be possible to alter the defaults so you didn't need quite so much knowledge of properties to do it? The behavior around `push` I found particularly confusing given Action's trigger system. I make heavy use of `workflow_dispatch` to simplify testing which didn't work even before I layered in the schedule.
Ideally if `runCmd` wasn't specified, it would just skip the container spin up for example.
Otherwise including a clear example for this scenario in the README and docs probably makes sense. //cc @stuartleeks
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Esamina il README e gli esempi della documentazione dell’action, quindi traccia come vengono gestiti imageName, skipContainerUserIdUpdate, push e runCmd. Confronta i valori predefiniti attuali con il workflow image-only richiesto e considera il lavoro completato quando il comportamento o un esempio chiaro copre le esecuzioni scheduled e workflow_dispatch.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- docker, github-actions, typescript
- Ambito
- ci-cd, devops, documentation
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100