Playing with Docker and github actionsm trying to answer what would be the best way to interact with docker within a github actions.
in a workflow:
steps:
- name: 'docker version simple'
run: docker version
Good:
- simplest
Bad:
- you don't control the version
- the version is weird (3.0.8???)
in a workflow:
steps:
- name: 'docker version simple'
uses: docker://docker:19.03.4
with:
args: docker version
Good:
- already shipped today
- you control the version
Bad:
- it's not a github action
in a workflow:
- name: 'docker version'
uses: jeanlaurent/docker-cli-action@master
with:
docker: version
Notes:
jeanlaurent/docker-cli-action
should be replaced withdocker/docker-cli-action
or something like that.master
could be replace with the exact cli version (tbc)- TODO: We should also expose the outputs for people to wire that in in github action.
Good:
- you control the version
- it integrates nicely with the github action mecanism
Bad:
- This needs to be updated with every engine release.