All checks were successful
		
		
	
	Build and Publish Docker Image / build-and-push (push) Successful in 4m23s
				
			
		
			
				
	
	
		
			46 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: Build and Publish Docker Image
 | |
| 
 | |
| on:
 | |
|   push:
 | |
|     tags:
 | |
|       - "*.*.*"
 | |
|   workflow_dispatch:
 | |
| 
 | |
| jobs:
 | |
|   build-and-push:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - name: Checkout
 | |
|         uses: actions/checkout@v4
 | |
| 
 | |
|       - name: Docker meta
 | |
|         id: meta
 | |
|         uses: docker/metadata-action@v5
 | |
|         with:
 | |
|           images: ${{ secrets.REGISTRY }}/${{ secrets.USERNAME }}/ktv-ui
 | |
|           tags: |
 | |
|             type=semver,pattern={{version}}
 | |
| 
 | |
|       - name: Set up Docker Buildx
 | |
|         uses: docker/setup-buildx-action@v3
 | |
| 
 | |
|       - name: Login to Docker Registry
 | |
|         uses: docker/login-action@v3
 | |
|         with:
 | |
|           registry: ${{ secrets.REGISTRY }}
 | |
|           username: ${{ secrets.USERNAME }}
 | |
|           password: ${{ secrets.PASSWORD }}
 | |
| 
 | |
|       - name: Build and push
 | |
|         uses: docker/build-push-action@v5
 | |
|         with:
 | |
|           context: .
 | |
|           push: true
 | |
|           tags: ${{ steps.meta.outputs.tags }}
 | |
|           labels: |
 | |
|             org.opencontainers.image.version=${{ steps.meta.outputs.version }}
 | |
|             org.opencontainers.image.title=KTVManager_UI
 | |
|             org.opencontainers.image.description=UI for KTVManager
 | |
|           build-args: |
 | |
|             VERSION=${{ steps.meta.outputs.version }}
 |