Loading .gitlab-ci.yml +15 −20 Original line number Diff line number Diff line --- variables: DOCKER_DRIVER: "overlay2" DOCKER_HOST: "tcp://localhost:2375/" DOCKER_TLS_CERTDIR: "" STORAGE_DRIVER: "overlay" stages: - "build" build image: stage: "build" image: "docker" services: - name: "docker:dind" command: ["--tls=false"] image-build: stage: "image-build" image: "quay.io/buildah/stable:latest" script: # login to container registry - echo "$CR_PASSWORD" | docker login $CR_HOSTNAME -u $CR_USERNAME --password-stdin # login - "echo $CR_PASSWORD | buildah login -u $CR_USERNAME --password-stdin $CR_HOSTNAME" # build observium-pe image - "docker build -t ssh-client -f Dockerfile.linux.amd64 ." # build image - "buildah bud -t ssh-client -f Dockerfile.linux.amd64 ." # add tags to image - "docker image tag ssh-client cr.simoncor.net/siempie/ssh-client:latest" - "docker image tag ssh-client cr.simoncor.net/siempie/ssh-client:v25.06.03" # tag image - "buildah tag ssh-client cr.simoncor.net/siempie/ssh-client:latest" - "buildah tag ssh-client cr.simoncor.net/siempie/ssh-client:v25.06.03" # push image to dockerhub. - "docker push --all-tags cr.simoncor.net/siempie/ssh-client" # push image - "buildah push cr.simoncor.net/siempie/ssh-client:latest" # logout from container registry - "docker logout $CR_HOSTNAME" # logout - "buildah logout $CR_HOSTNAME" Loading
.gitlab-ci.yml +15 −20 Original line number Diff line number Diff line --- variables: DOCKER_DRIVER: "overlay2" DOCKER_HOST: "tcp://localhost:2375/" DOCKER_TLS_CERTDIR: "" STORAGE_DRIVER: "overlay" stages: - "build" build image: stage: "build" image: "docker" services: - name: "docker:dind" command: ["--tls=false"] image-build: stage: "image-build" image: "quay.io/buildah/stable:latest" script: # login to container registry - echo "$CR_PASSWORD" | docker login $CR_HOSTNAME -u $CR_USERNAME --password-stdin # login - "echo $CR_PASSWORD | buildah login -u $CR_USERNAME --password-stdin $CR_HOSTNAME" # build observium-pe image - "docker build -t ssh-client -f Dockerfile.linux.amd64 ." # build image - "buildah bud -t ssh-client -f Dockerfile.linux.amd64 ." # add tags to image - "docker image tag ssh-client cr.simoncor.net/siempie/ssh-client:latest" - "docker image tag ssh-client cr.simoncor.net/siempie/ssh-client:v25.06.03" # tag image - "buildah tag ssh-client cr.simoncor.net/siempie/ssh-client:latest" - "buildah tag ssh-client cr.simoncor.net/siempie/ssh-client:v25.06.03" # push image to dockerhub. - "docker push --all-tags cr.simoncor.net/siempie/ssh-client" # push image - "buildah push cr.simoncor.net/siempie/ssh-client:latest" # logout from container registry - "docker logout $CR_HOSTNAME" # logout - "buildah logout $CR_HOSTNAME"