woodpecker and hub.docker.com integration
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline failed

This commit is contained in:
Wolfgang Hottgenroth 2024-12-10 13:39:57 +01:00
parent a666ec8452
commit 4ed5e7562a
3 changed files with 13 additions and 24 deletions

View File

@ -1,22 +0,0 @@
image: docker:stable
stages:
- build
variables:
IMAGE_NAME: registry.gitlab.com/wolutator/exim-docker
build:
stage: build
tags:
- hottis
- linux
- docker
script:
- VERSION=`cat VERSION`
- echo "Version is $VERSION"
- docker build --tag $IMAGE_NAME:latest --tag $IMAGE_NAME:$VERSION .
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker push $IMAGE_NAME:latest
- docker push $IMAGE_NAME:$VERSION

View File

@ -13,4 +13,16 @@ steps:
dockerfile: Dockerfile dockerfile: Dockerfile
when: when:
- event: [push, tag] - event: [push, tag]
public_build:
image: plugins/kaniko
settings:
repo: wollud1969/exim-docker
registry: docker.io
tags: latest,${CI_COMMIT_SHA},${CI_COMMIT_TAG}
username:
from_secret: docker_hub_username
password:
from_secret: docker_hub_password
dockerfile: Dockerfile
when:
- event: [tag]

View File

@ -1 +0,0 @@
0.1