diff --git a/Docker/kaniko.yml b/Docker/kaniko.yml new file mode 100644 index 0000000..62cb468 --- /dev/null +++ b/Docker/kaniko.yml @@ -0,0 +1,16 @@ +# Pushes a Docker image without needing access to the Docker daemon +# +# Pushing an image to a container registry authenticated: +# DOCKER_USERNAME - Woodpecker CI Secret which is the container registry username +# DOCKER_PASSWORD - Woodpecker CI Secret which is container registry password +pipeline: + publish-docker-image: + image: plugins/kaniko + settings: + repo: sample/image + tags: latest,v1-${CI_COMMIT_SHA:0:8} + dockerfile: Dockerfile + username: + from_secret: docker_username + password: + from_secret: docker_password diff --git a/README.md b/README.md index 1d4cc56..d2e710e 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,9 @@ Pull requests are accepted/welcome. | [golang/build-docker.yml](golang/build-docker.yml) | golang | golang / kaniko | CI to build golang project and build various docker container and publish them on DockerHub | | [Jekyll/jekyll.yml](Jekyll/jekyll.yml) | Markdown | Jekyll | CI step to build static website files and publish them to Codeberg Pages using Jekyll | | [Hugo/hugo.yml](Hugo/hugo.yml) | Markdown | Hugo | CI step to build static website files and publish them to Codeberg Pages with Hugo | +| [Docker/docker.yml](Docker/kaniko.yml) | Dockerfile | [Kaniko][1] | Minimalistic CI pipeline with clear instructions to push a Docker image | # More: https://codeberg.org/explore/repos?q=woodpecker-ci&topic=1 + +[1]: https://github.com/GoogleContainerTools/kaniko