Use another action for retagging
This commit is contained in:
		
							parent
							
								
									4392c45966
								
							
						
					
					
						commit
						4f9ca12ee5
					
				
					 1 changed files with 15 additions and 6 deletions
				
			
		
							
								
								
									
										21
									
								
								.github/workflows/build_docker_images.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										21
									
								
								.github/workflows/build_docker_images.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -65,7 +65,8 @@ jobs: | ||||||
|         with: |         with: | ||||||
|           username: ${{ secrets.DOCKERHUB_USERNAME }} |           username: ${{ secrets.DOCKERHUB_USERNAME }} | ||||||
|           password: ${{ secrets.DOCKERHUB_TOKEN }} |           password: ${{ secrets.DOCKERHUB_TOKEN }} | ||||||
|       - name: Checkout repository |       -  | ||||||
|  |         name: Checkout repository | ||||||
|         uses: actions/checkout@v2 |         uses: actions/checkout@v2 | ||||||
|       -  |       -  | ||||||
|         name: Download a single artifact |         name: Download a single artifact | ||||||
|  | @ -84,9 +85,17 @@ jobs: | ||||||
|       -  |       -  | ||||||
|         name: Retag image |         name: Retag image | ||||||
|         if: github.ref != null |         if: github.ref != null | ||||||
|         uses: javajawa/remote-docker-tag@v1 |         uses: flownative/action-docker-publish-semver@master | ||||||
|         with: |         with: | ||||||
|           registry: hub.docker.com |           tag_ref: ${{ github.ref }} | ||||||
|           repository: bengig |           tag_latest: 'yes' | ||||||
|           existing-tag: ${{ github.sha }} | 
 | ||||||
|           new-tag: ${{ github.ref }} |           source_image_name: bengig/seb-server | ||||||
|  |           source_registry_username: ${{ secrets.DOCKERHUB_USERNAME }} | ||||||
|  |           source_registry_password: ${{ secrets.DOCKERHUB_TOKEN }} | ||||||
|  |           source_registry_endpoint: https://index.docker.io/v2/ | ||||||
|  | 
 | ||||||
|  |           target_image_name: bengig/seb-server | ||||||
|  |           target_registry_username: ${{ secrets.DOCKERHUB_USER }} | ||||||
|  |           target_registry_password: ${{ secrets.DOCKERHUB_TOKEN }} | ||||||
|  |           target_registry_endpoint: https://index.docker.io/v2/ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Bengt Giger
						Bengt Giger