mirror of
				https://git.collinwebdesigns.de/oscar.krause/fastapi-dls.git
				synced 2025-10-26 18:05:28 +03:00 
			
		
		
		
	Aktualisieren .gitlab-ci.yml
This commit is contained in:
		
							parent
							
								
									1fc5ac8378
								
							
						
					
					
						commit
						6f11bc414c
					
				| @ -8,6 +8,7 @@ include: | |||||||
| cache: | cache: | ||||||
|   key: one-key-to-rule-them-all |   key: one-key-to-rule-them-all | ||||||
| 
 | 
 | ||||||
|  | # https://docs.docker.com/build/building/multi-platform/ | ||||||
| build:docker: | build:docker: | ||||||
|   image: docker:dind |   image: docker:dind | ||||||
|   interruptible: true |   interruptible: true | ||||||
| @ -21,10 +22,12 @@ build:docker: | |||||||
|   tags: [ docker ] |   tags: [ docker ] | ||||||
|   before_script: |   before_script: | ||||||
|     - echo -e "VERSION=$CI_BUILD_REF_NAME\nCOMMIT=$CI_COMMIT_SHA" > version.env  # COMMIT=`git rev-parse HEAD` |     - echo -e "VERSION=$CI_BUILD_REF_NAME\nCOMMIT=$CI_COMMIT_SHA" > version.env  # COMMIT=`git rev-parse HEAD` | ||||||
|  |     - docker buildx ls | ||||||
|  |     - docker buildx inspect | ||||||
|   script: |   script: | ||||||
|     - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY |     - 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 |     - IMAGE=$CI_REGISTRY/$CI_PROJECT_PATH/$CI_BUILD_REF_NAME:$CI_BUILD_REF | ||||||
|     - docker build . --tag $IMAGE |     - docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 . --tag $IMAGE | ||||||
|     - docker push $IMAGE |     - docker push $IMAGE | ||||||
|     - echo "CS_IMAGE=$IMAGE" > container_scanning.env |     - echo "CS_IMAGE=$IMAGE" > container_scanning.env | ||||||
|   artifacts: |   artifacts: | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Oscar Krause
						Oscar Krause