mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	update actions for release (#13318)
This commit is contained in:
		
							parent
							
								
									4de088d725
								
							
						
					
					
						commit
						617d279419
					
				
							
								
								
									
										2
									
								
								.github/actions/setup/action.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/actions/setup/action.yml
									
									
									
									
										vendored
									
									
								
							@ -5,7 +5,7 @@ inputs:
 | 
				
			|||||||
    required: true
 | 
					    required: true
 | 
				
			||||||
outputs:
 | 
					outputs:
 | 
				
			||||||
  image-name:
 | 
					  image-name:
 | 
				
			||||||
    value: ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ github.ref_name }}-${{ steps.create-short-sha.outputs.SHORT_SHA }}
 | 
					    value: ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ steps.create-short-sha.outputs.SHORT_SHA }}
 | 
				
			||||||
  cache-name:
 | 
					  cache-name:
 | 
				
			||||||
    value: ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:cache
 | 
					    value: ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:cache
 | 
				
			||||||
runs:
 | 
					runs:
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										8
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							@ -23,10 +23,10 @@ jobs:
 | 
				
			|||||||
          password: ${{ secrets.GITHUB_TOKEN }}
 | 
					          password: ${{ secrets.GITHUB_TOKEN }}
 | 
				
			||||||
      - name: Create tag variables
 | 
					      - name: Create tag variables
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          BRANCH=dev
 | 
					          BUILD_TYPE=$([[ "${{ github.ref_name }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] && echo "stable" || echo "beta")
 | 
				
			||||||
          echo "BRANCH=${BRANCH}" >> $GITHUB_ENV
 | 
					          echo "BUILD_TYPE=${BUILD_TYPE}" >> $GITHUB_ENV
 | 
				
			||||||
          echo "BASE=ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}" >> $GITHUB_ENV
 | 
					          echo "BASE=ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}" >> $GITHUB_ENV
 | 
				
			||||||
          echo "BUILD_TAG=${BRANCH}-${GITHUB_SHA::7}" >> $GITHUB_ENV
 | 
					          echo "BUILD_TAG=${GITHUB_SHA::7}" >> $GITHUB_ENV
 | 
				
			||||||
          echo "CLEAN_VERSION=$(echo ${GITHUB_REF##*/} | tr '[:upper:]' '[:lower:]' | sed 's/^[v]//')" >> $GITHUB_ENV
 | 
					          echo "CLEAN_VERSION=$(echo ${GITHUB_REF##*/} | tr '[:upper:]' '[:lower:]' | sed 's/^[v]//')" >> $GITHUB_ENV
 | 
				
			||||||
      - name: Tag and push the main image
 | 
					      - name: Tag and push the main image
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
@ -39,7 +39,7 @@ jobs:
 | 
				
			|||||||
          done
 | 
					          done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          # stable tag
 | 
					          # stable tag
 | 
				
			||||||
          if [[ "${BRANCH}" == "master" ]]; then
 | 
					          if [[ "${BUILD_TYPE}" == "stable" ]]; then
 | 
				
			||||||
            docker run --rm -v $HOME/.docker/config.json:/config.json quay.io/skopeo/stable:latest copy --authfile /config.json --multi-arch all docker://${PULL_TAG} docker://${STABLE_TAG}
 | 
					            docker run --rm -v $HOME/.docker/config.json:/config.json quay.io/skopeo/stable:latest copy --authfile /config.json --multi-arch all docker://${PULL_TAG} docker://${STABLE_TAG}
 | 
				
			||||||
            for variant in standard-arm64 tensorrt tensorrt-jp4 tensorrt-jp5 rk; do
 | 
					            for variant in standard-arm64 tensorrt tensorrt-jp4 tensorrt-jp5 rk; do
 | 
				
			||||||
              docker run --rm -v $HOME/.docker/config.json:/config.json quay.io/skopeo/stable:latest copy --authfile /config.json --multi-arch all docker://${PULL_TAG}-${variant} docker://${STABLE_TAG}-${variant}
 | 
					              docker run --rm -v $HOME/.docker/config.json:/config.json quay.io/skopeo/stable:latest copy --authfile /config.json --multi-arch all docker://${PULL_TAG}-${variant} docker://${STABLE_TAG}-${variant}
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										26
									
								
								.github/workflows/stale.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										26
									
								
								.github/workflows/stale.yml
									
									
									
									
										vendored
									
									
								
							@ -25,17 +25,17 @@ jobs:
 | 
				
			|||||||
      - name: Print outputs
 | 
					      - name: Print outputs
 | 
				
			||||||
        run: echo ${{ join(steps.stale.outputs.*, ',') }}
 | 
					        run: echo ${{ join(steps.stale.outputs.*, ',') }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  clean_ghcr:
 | 
					  # clean_ghcr:
 | 
				
			||||||
    name: Delete outdated dev container images
 | 
					  #   name: Delete outdated dev container images
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					  #   runs-on: ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					  #   steps:
 | 
				
			||||||
      - name: Delete old images
 | 
					  #     - name: Delete old images
 | 
				
			||||||
        uses: snok/container-retention-policy@v2
 | 
					  #       uses: snok/container-retention-policy@v2
 | 
				
			||||||
        with:
 | 
					  #       with:
 | 
				
			||||||
          image-names: dev-*
 | 
					  #         image-names: dev-*
 | 
				
			||||||
          cut-off: 60 days ago UTC
 | 
					  #         cut-off: 60 days ago UTC
 | 
				
			||||||
          keep-at-least: 5
 | 
					  #         keep-at-least: 5
 | 
				
			||||||
          account-type: personal
 | 
					  #         account-type: personal
 | 
				
			||||||
          token: ${{ secrets.GITHUB_TOKEN }}
 | 
					  #         token: ${{ secrets.GITHUB_TOKEN }}
 | 
				
			||||||
          token-type: github-token
 | 
					  #         token-type: github-token
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user