mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/ocr.git
				synced 2025-10-31 13:42:44 +00:00 
			
		
		
		
	Change intermediate image name in order to fix issues with building multiple branches/tags at the same time
This commit is contained in:
		| @@ -1,8 +1,5 @@ | |||||||
| image: docker:19.03.13 | image: docker:19.03.13 | ||||||
|  |  | ||||||
| variables: |  | ||||||
|   DOCKER_TLS_CERTDIR: "/certs" |  | ||||||
|  |  | ||||||
| services: | services: | ||||||
|   - docker:19.03.13-dind |   - docker:19.03.13-dind | ||||||
|  |  | ||||||
| @@ -10,6 +7,10 @@ stages: | |||||||
|   - build |   - build | ||||||
|   - push |   - push | ||||||
|  |  | ||||||
|  | variables: | ||||||
|  |   DOCKER_TLS_CERTDIR: "/certs" | ||||||
|  |   INTERMEDIATE_IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA | ||||||
|  |  | ||||||
| .reg_setup: | .reg_setup: | ||||||
|   before_script: |   before_script: | ||||||
|     - apk add --no-cache curl |     - apk add --no-cache curl | ||||||
| @@ -28,8 +29,6 @@ build_image: | |||||||
|   stage: build |   stage: build | ||||||
|   tags: |   tags: | ||||||
|     - docker |     - docker | ||||||
|   variables: |  | ||||||
|     INTERMEDIATE_IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA |  | ||||||
|  |  | ||||||
| push_master: | push_master: | ||||||
|   extends: |   extends: | ||||||
| @@ -47,7 +46,6 @@ push_master: | |||||||
|     - docker |     - docker | ||||||
|   variables: |   variables: | ||||||
|     IMAGE_TAG: $CI_REGISTRY_IMAGE:latest |     IMAGE_TAG: $CI_REGISTRY_IMAGE:latest | ||||||
|     INTERMEDIATE_IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA |  | ||||||
|  |  | ||||||
| push_other: | push_other: | ||||||
|   extends: |   extends: | ||||||
| @@ -68,4 +66,3 @@ push_other: | |||||||
|     - docker |     - docker | ||||||
|   variables: |   variables: | ||||||
|     IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME |     IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME | ||||||
|     INTERMEDIATE_IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user