Skip to content
Snippets Groups Projects
Commit ebc4843c authored by Ostermayer, Markus's avatar Ostermayer, Markus
Browse files

Merge branch '2-switch-from-docker-dind-to-img' into 'main'

switched to img

Closes #2

See merge request !3
parents 462a75bc 3dc3ceb2
No related branches found
No related tags found
1 merge request!3switched to img
Pipeline #189874 failed
image: docker:20.10.10
image: r.j3ss.co/img:latest
build-image:
stage: build
variables:
IMAGE_NAME: "os-sweb-buildimage"
IMAGE_TAG: $CI_REGISTRY_IMAGE/$IMAGE_NAME:latest
services:
- docker:20.10.10-dind
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $IMAGE_TAG .
- docker push $IMAGE_TAG
- img login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- img build -t $IMAGE_TAG .
- img push $IMAGE_TAG
rules:
- if: $CI_COMMIT_BRANCH == "main"
changes:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment