mirror of
				https://github.com/thib8956/nginx-proxy
				synced 2025-11-03 18:49:20 +00:00 
			
		
		
		
	ci: add nginx-proxy version to image on build
This commit is contained in:
		
							
								
								
									
										8
									
								
								.github/workflows/dockerhub.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/dockerhub.yml
									
									
									
									
										vendored
									
									
								
							@@ -53,12 +53,16 @@ jobs:
 | 
			
		||||
          username: ${{ secrets.DOCKERHUB_USERNAME }}
 | 
			
		||||
          password: ${{ secrets.DOCKERHUB_TOKEN }}
 | 
			
		||||
 | 
			
		||||
      - name: Retrieve version
 | 
			
		||||
        run: echo "GIT_DESCRIBE=$(git describe --tags)" >> $GITHUB_ENV
 | 
			
		||||
 | 
			
		||||
      - name: Build and push the Debian based image
 | 
			
		||||
        id: docker_build_debian
 | 
			
		||||
        uses: docker/build-push-action@v2
 | 
			
		||||
        with:
 | 
			
		||||
          context: .
 | 
			
		||||
          file: Dockerfile
 | 
			
		||||
          build-args: NGINX_PROXY_VERSION=${{ env.GIT_DESCRIBE }}
 | 
			
		||||
          platforms: linux/amd64,linux/arm64,linux/arm/v7
 | 
			
		||||
          push: true
 | 
			
		||||
          tags: ${{ steps.docker_meta_debian.outputs.tags }}
 | 
			
		||||
@@ -101,12 +105,16 @@ jobs:
 | 
			
		||||
          username: ${{ secrets.DOCKERHUB_USERNAME }}
 | 
			
		||||
          password: ${{ secrets.DOCKERHUB_TOKEN }}
 | 
			
		||||
 | 
			
		||||
      - name: Retrieve version
 | 
			
		||||
        run: echo "GIT_DESCRIBE=$(git describe --tags)" >> $GITHUB_ENV
 | 
			
		||||
 | 
			
		||||
      - name: Build and push the Alpine based image
 | 
			
		||||
        id: docker_build_alpine
 | 
			
		||||
        uses: docker/build-push-action@v2
 | 
			
		||||
        with:
 | 
			
		||||
          context: .
 | 
			
		||||
          file: Dockerfile.alpine
 | 
			
		||||
          build-args: NGINX_PROXY_VERSION=${{ env.GIT_DESCRIBE }}
 | 
			
		||||
          platforms: linux/amd64,linux/arm64,linux/arm/v7
 | 
			
		||||
          push: true
 | 
			
		||||
          tags: ${{ steps.docker_meta_alpine.outputs.tags }}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user