chore: Update GitHub workflow to use versions.json instead of version.json
This commit is contained in:
		
							
								
								
									
										18
									
								
								.github/workflows/coolify-helper.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								.github/workflows/coolify-helper.yml
									
									
									
									
										vendored
									
									
								
							@@ -25,6 +25,10 @@ jobs:
 | 
			
		||||
          registry: ${{ env.REGISTRY }}
 | 
			
		||||
          username: ${{ github.actor }}
 | 
			
		||||
          password: ${{ secrets.GITHUB_TOKEN  }}
 | 
			
		||||
      - name: Get Version
 | 
			
		||||
        id: version
 | 
			
		||||
        run: |
 | 
			
		||||
          echo "VERSION=$(jq -r '.coolify.helper.version' $(pwd)/versions.json)"|xargs >> $GITHUB_OUTPUT
 | 
			
		||||
      - name: Build image and push to registry
 | 
			
		||||
        uses: docker/build-push-action@v5
 | 
			
		||||
        with:
 | 
			
		||||
@@ -33,7 +37,7 @@ jobs:
 | 
			
		||||
          file: docker/coolify-helper/Dockerfile
 | 
			
		||||
          platforms: linux/amd64
 | 
			
		||||
          push: true
 | 
			
		||||
          tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
 | 
			
		||||
          tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.VERSION }}
 | 
			
		||||
  aarch64:
 | 
			
		||||
    runs-on: [ self-hosted, arm64 ]
 | 
			
		||||
    permissions:
 | 
			
		||||
@@ -47,6 +51,10 @@ jobs:
 | 
			
		||||
          registry: ${{ env.REGISTRY }}
 | 
			
		||||
          username: ${{ github.actor }}
 | 
			
		||||
          password: ${{ secrets.GITHUB_TOKEN  }}
 | 
			
		||||
      - name: Get Version
 | 
			
		||||
        id: version
 | 
			
		||||
        run: |
 | 
			
		||||
          echo "VERSION=$(jq -r '.coolify.helper.version' $(pwd)/versions.json)"|xargs >> $GITHUB_OUTPUT
 | 
			
		||||
      - name: Build image and push to registry
 | 
			
		||||
        uses: docker/build-push-action@v5
 | 
			
		||||
        with:
 | 
			
		||||
@@ -55,7 +63,7 @@ jobs:
 | 
			
		||||
          file: docker/coolify-helper/Dockerfile
 | 
			
		||||
          platforms: linux/aarch64
 | 
			
		||||
          push: true
 | 
			
		||||
          tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest-aarch64
 | 
			
		||||
          tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.VERSION }}-aarch64
 | 
			
		||||
  merge-manifest:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    permissions:
 | 
			
		||||
@@ -75,9 +83,13 @@ jobs:
 | 
			
		||||
          registry: ${{ env.REGISTRY }}
 | 
			
		||||
          username: ${{ github.actor }}
 | 
			
		||||
          password: ${{ secrets.GITHUB_TOKEN  }}
 | 
			
		||||
      - name: Get Version
 | 
			
		||||
        id: version
 | 
			
		||||
        run: |
 | 
			
		||||
          echo "VERSION=$(jq -r '.coolify.helper.version' $(pwd)/versions.json)"|xargs >> $GITHUB_OUTPUT
 | 
			
		||||
      - name: Create & publish manifest
 | 
			
		||||
        run: |
 | 
			
		||||
          docker buildx imagetools create --append ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest-aarch64 --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
 | 
			
		||||
          docker buildx imagetools create --append ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.VERSION }}-aarch64 --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.VERSION }} --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
 | 
			
		||||
      - uses: sarisia/actions-status-discord@v1
 | 
			
		||||
        if: always()
 | 
			
		||||
        with:
 | 
			
		||||
 
 | 
			
		||||
@@ -7,7 +7,7 @@
 | 
			
		||||
            "version": "4.0.0-beta.331"
 | 
			
		||||
        },
 | 
			
		||||
        "helper": {
 | 
			
		||||
            "version": "0.0.1"
 | 
			
		||||
            "version": "1.0.0"
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user