mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	gitlab-ci: only display message if not running docker push
This commit is contained in:
		
							parent
							
								
									53a507d7c4
								
							
						
					
					
						commit
						66d8b783f0
					
				
					 1 changed files with 6 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -582,9 +582,11 @@ docker:
 | 
			
		|||
    - docker tag $TEST_IMAGE ${RELEASE_IMAGE}-stretch
 | 
			
		||||
    - echo $CI_BUILD_TOKEN | docker login -u gitlab-ci-token --password-stdin registry.gitlab.com
 | 
			
		||||
    # This avoids filling up gitlab.com free tier accounts with unused docker images.
 | 
			
		||||
    - echo "Skipping docker push to save quota on your gitlab namespace."
 | 
			
		||||
    - echo "If you want to enable the push, set FDROID_PUSH_DOCKER_IMAGE in"
 | 
			
		||||
    - echo "https://gitlab.com/$CI_PROJECT_NAMESPACE/fdroidserver/-/settings/ci_cd#js-cicd-variables-settings"
 | 
			
		||||
    - test -n "$FDROID_PUSH_DOCKER_IMAGE" || exit 0
 | 
			
		||||
    - if test -n "$FDROID_PUSH_DOCKER_IMAGE"; then
 | 
			
		||||
          echo "Skipping docker push to save quota on your gitlab namespace.";
 | 
			
		||||
          echo "If you want to enable the push, set FDROID_PUSH_DOCKER_IMAGE in";
 | 
			
		||||
          echo "https://gitlab.com/$CI_PROJECT_NAMESPACE/fdroidserver/-/settings/ci_cd#js-cicd-variables-settings";
 | 
			
		||||
          exit 0;
 | 
			
		||||
      fi
 | 
			
		||||
    - docker push $RELEASE_IMAGE
 | 
			
		||||
    - docker push $RELEASE_IMAGE-stretch
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue