mirror of
				https://git.unlock-music.dev/um/web.git
				synced 2025-11-04 15:33:28 +08:00 
			
		
		
		
	Fix: [CI] Build Docker Image
This commit is contained in:
		
							parent
							
								
									85fdbff00d
								
							
						
					
					
						commit
						d73493a624
					
				
							
								
								
									
										43
									
								
								.github/workflows/release-docker.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										43
									
								
								.github/workflows/release-docker.yml
									
									
									
									
										vendored
									
									
								
							@ -1,13 +1,25 @@
 | 
				
			|||||||
name: Publish Docker image
 | 
					name: Publish Docker Image
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
  release:
 | 
					  release:
 | 
				
			||||||
    types: [ published ]
 | 
					    types: [ published ]
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
 | 
					  release-docker:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Setup vars
 | 
				
			||||||
 | 
					        id: vars
 | 
				
			||||||
 | 
					        env:
 | 
				
			||||||
 | 
					          RELEASE_REF: ${{ github.ref }}
 | 
				
			||||||
 | 
					        run: echo "::set-output name=tag::${RELEASE_REF#refs/tags/}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Download release content
 | 
					      - name: Download release content
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
      wget -o modern.tar.gz "https://github.com/ix64/unlock-music/releases/download/${{ GITHUB_REF }}/modern.tar.gz"
 | 
					          echo "https://github.com/${{ github.repository }}/releases/download/${{ steps.vars.outputs.tag }}/modern.tar.gz"
 | 
				
			||||||
 | 
					          wget -O modern.tar.gz "https://github.com/${{ github.repository }}/releases/download/${{ steps.vars.outputs.tag }}/modern.tar.gz"
 | 
				
			||||||
          mkdir ./dist
 | 
					          mkdir ./dist
 | 
				
			||||||
      tar zxvf modern.tar.gz -C ./dist
 | 
					          tar zxf modern.tar.gz -C ./dist
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Set up Docker Buildx
 | 
					      - name: Set up Docker Buildx
 | 
				
			||||||
        uses: docker/setup-buildx-action@v1
 | 
					        uses: docker/setup-buildx-action@v1
 | 
				
			||||||
@ -27,4 +39,27 @@ jobs:
 | 
				
			|||||||
          push: true
 | 
					          push: true
 | 
				
			||||||
          tags: |
 | 
					          tags: |
 | 
				
			||||||
            ix64/unlock-music:latest
 | 
					            ix64/unlock-music:latest
 | 
				
			||||||
        ix64/unlock-music:${{ GITHUB_REF }}
 | 
					            ix64/unlock-music:${{ steps.vars.outputs.tag }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  gh-pages:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - name: Setup vars
 | 
				
			||||||
 | 
					        id: vars
 | 
				
			||||||
 | 
					        env:
 | 
				
			||||||
 | 
					          RELEASE_REF: ${{ github.ref }}
 | 
				
			||||||
 | 
					        run: echo "::set-output name=tag::${RELEASE_REF#refs/tags/}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Download release content
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          echo "https://github.com/${{ github.repository }}/releases/download/${{ steps.vars.outputs.tag }}/modern.tar.gz"
 | 
				
			||||||
 | 
					          wget -O modern.tar.gz "https://github.com/${{ github.repository }}/releases/download/${{ steps.vars.outputs.tag }}/modern.tar.gz"
 | 
				
			||||||
 | 
					          mkdir ./dist
 | 
				
			||||||
 | 
					          tar zxf modern.tar.gz -C ./dist
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Deploy
 | 
				
			||||||
 | 
					        uses: peaceiris/actions-gh-pages@v3
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          github_token: ${{ secrets.GITHUB_TOKEN }}
 | 
				
			||||||
 | 
					          publish_dir: ./dist
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										6
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							@ -53,12 +53,6 @@ jobs:
 | 
				
			|||||||
      - name: Checksum
 | 
					      - name: Checksum
 | 
				
			||||||
        run: sha256sum *.tar.gz *.zip > sha256sum.txt
 | 
					        run: sha256sum *.tar.gz *.zip > sha256sum.txt
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Deploy
 | 
					 | 
				
			||||||
        uses: peaceiris/actions-gh-pages@v3
 | 
					 | 
				
			||||||
        with:
 | 
					 | 
				
			||||||
          github_token: ${{ secrets.GITHUB_TOKEN }}
 | 
					 | 
				
			||||||
          publish_dir: ./dist
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      - name: Get current time
 | 
					      - name: Get current time
 | 
				
			||||||
        id: date
 | 
					        id: date
 | 
				
			||||||
        run: echo "::set-output name=date::$(date +'%Y/%m/%d')"
 | 
					        run: echo "::set-output name=date::$(date +'%Y/%m/%d')"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user