improvements

This commit is contained in:
Oscar Krause 2023-03-23 11:10:53 +01:00
parent 04ff36c94d
commit e200c84345

View File

@ -21,14 +21,13 @@ build:docker:
tags: [ docker ]
before_script:
- echo -e "VERSION=$CI_BUILD_REF_NAME\nCOMMIT=$CI_COMMIT_SHA" > version.env # COMMIT=`git rev-parse HEAD`
- docker buildx ls
- docker buildx inspect
- docker buildx create --use tcp://docker:2375
- docker buildx create --use # tcp://docker:2375
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- IMAGE=$CI_REGISTRY/$CI_PROJECT_PATH/$CI_BUILD_REF_NAME:$CI_BUILD_REF
- docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 . --tag $IMAGE
- docker push $IMAGE
- docker buildx build --progress=plain --platform linux/amd64,linux/arm64,linux/arm/v7 --tag $IMAGE --push .
# - docker push $IMAGE
- echo "CS_IMAGE=$IMAGE" > container_scanning.env
artifacts:
reports: