I’m trying to get my head around the best way of doing this:
I’ve got a few Dockerfiles together in a repo, https://github.com/baxterworks-build/Dockerfiles.
I’d like to only build and release certain Dockerfiles based on the commit message (putting a prefix: at the front). I realise this isn’t quite how it’s supposed to work.
I only just found out about the ability to publish docker images from drone.io so I’m pretty new to this
A simple pipeline would look like this:
--- kind: pipeline steps: - name: docker image: plugins/docker settings: username: voltagex password: from_secret: docker_auth repo: voltagex/fedora-mingw64-rtlsdr dockerfile: fedora-mingw64-rtlsdr/Dockerfile
What I was hoping is that I could use a variable in
dockerfile (using the idea here - Any way to share variables between steps)
Am I better off splitting up the repo? At the moment it looks like GitLab has good subgroup support that’d let me collect everything under one overarching “project”.
What do you think?