devcontainers / devcontainers/ci
Make compatible with Docker Metadata action
- Lingua principale
- TypeScript
- Stelle
- 496
- Fork
- 101
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
It would be really nice if this action were compatible with the [Docker Metadata action](https://github.com/docker/metadata-action), so that tags could be generated by that action and easily passed to this action.
Right now, if you do this:
```yml
- id: metadata
uses: docker/metadata-action@v4
with:
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
- uses: devcontainers/ci@v0.3
with:
imageTag: "${{ join(steps.metadata.outputs.tags) }}"
```
The result is a Docker error, because `steps.metadata.outputs.tags` is already in the format `"{image}:{tag}"[]`, and this action prepends each tag with `{image}:` again. Docker doesn't like `-t {image}:{image}:{tag}` and errors out.
If this action could check each tag to see if it's already prepended with the image name before doing so, then I think it would be directly compatible with the official Docker action.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia tracciando l’input imageTag dell’azione devcontainers/ci e analizzando come il valore steps.metadata.outputs.tags dell’azione metadata diventa argomento per i tag Docker. Confronta la gestione attuale con il formato di output documentato `{image}:{tag}` e considera completato il lavoro quando i tag generati da metadata non producono più un prefisso dell’immagine duplicato né un errore di tag Docker.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- docker, github-actions, typescript
- Ambito
- ci-cd, devops
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100