mirror of
				https://gitea.com/gitea/gitea-mcp.git
				synced 2025-11-04 12:21:50 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			52 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: release-nightly
 | 
						|
 | 
						|
on:
 | 
						|
  push:
 | 
						|
    branches: [main]
 | 
						|
    tags:
 | 
						|
      - "*"
 | 
						|
 | 
						|
jobs:
 | 
						|
  release-image:
 | 
						|
    runs-on: ubuntu-latest
 | 
						|
    env:
 | 
						|
      DOCKER_ORG: gitea
 | 
						|
      DOCKER_LATEST: nightly
 | 
						|
    steps:
 | 
						|
      - name: Checkout
 | 
						|
        uses: actions/checkout@v4
 | 
						|
        with:
 | 
						|
          fetch-depth: 0 # all history for all branches and tags
 | 
						|
 | 
						|
      - name: Set up QEMU
 | 
						|
        uses: docker/setup-qemu-action@v3
 | 
						|
 | 
						|
      - name: Set up Docker BuildX
 | 
						|
        uses: docker/setup-buildx-action@v3
 | 
						|
 | 
						|
      - name: Login to DockerHub
 | 
						|
        uses: docker/login-action@v3
 | 
						|
        with:
 | 
						|
          username: ${{ secrets.DOCKER_USER }}
 | 
						|
          password: ${{ secrets.DOCKER_TOKEN }}
 | 
						|
 | 
						|
      - name: Get Meta
 | 
						|
        id: meta
 | 
						|
        run: |
 | 
						|
          echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
 | 
						|
          echo REPO_VERSION=$(git describe --tags --always | sed 's/-/+/' | sed 's/^v//') >> $GITHUB_OUTPUT
 | 
						|
 | 
						|
      - name: Build and push
 | 
						|
        uses: docker/build-push-action@v5
 | 
						|
        with:
 | 
						|
          context: .
 | 
						|
          file: ./Dockerfile
 | 
						|
          platforms: |
 | 
						|
            linux/amd64
 | 
						|
            linux/arm64
 | 
						|
          push: true
 | 
						|
          tags: |
 | 
						|
            ${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}-server:${{ env.DOCKER_LATEST }}
 | 
						|
          build-args: |
 | 
						|
            VERSION=${{ steps.meta.outputs.REPO_VERSION }}
 |