dev mgirated to buildkit
This commit is contained in:
		@@ -19,17 +19,29 @@ jobs:
 | 
			
		||||
    runs-on: ubuntu-22.04
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v4
 | 
			
		||||
 | 
			
		||||
      - name: Set up Docker Buildx
 | 
			
		||||
        uses: docker/setup-buildx-action@v3
 | 
			
		||||
 | 
			
		||||
      - name: Log in to registry
 | 
			
		||||
        uses: docker/login-action@v2
 | 
			
		||||
        with:
 | 
			
		||||
          registry: gitea.sikorski.cloud
 | 
			
		||||
          username: rogersik
 | 
			
		||||
          password: ${{ secrets.REGISTRY_PASSWORD }}
 | 
			
		||||
 | 
			
		||||
      - name: Clean Branch Name
 | 
			
		||||
        id: clean_branch_name
 | 
			
		||||
        run: |
 | 
			
		||||
          CLEANED_BRANCH_NAME=$(echo "${GITHUB_REF_NAME}" | tr '[:upper:]' '[:lower:]' | tr '/_' '-')
 | 
			
		||||
          echo "CLEAN_BRANCH_NAME=${CLEANED_BRANCH_NAME}" >> $GITHUB_ENV
 | 
			
		||||
      - name: Kaniko build
 | 
			
		||||
        uses: aevea/action-kaniko@v0.12.0
 | 
			
		||||
        with:
 | 
			
		||||
          image: rogersik/monica
 | 
			
		||||
          registry: gitea.sikorski.cloud
 | 
			
		||||
          tag: "${{ env.CLEAN_BRANCH_NAME }}"
 | 
			
		||||
          cache: true
 | 
			
		||||
          username: rogersik
 | 
			
		||||
          password: ${{ secrets.REGISTRY_PASSWORD }}
 | 
			
		||||
 | 
			
		||||
      - name: Build and push Docker image
 | 
			
		||||
        run: |
 | 
			
		||||
          docker buildx build \
 | 
			
		||||
            --platform linux/amd64,linux/arm64 \
 | 
			
		||||
            --tag gitea.sikorski.cloud/rogersik/monica:${CLEAN_BRANCH_NAME} \
 | 
			
		||||
            --cache-from=type=registry,ref=gitea.sikorski.cloud/rogersik/monica:cache \
 | 
			
		||||
            --cache-to=type=registry,ref=gitea.sikorski.cloud/rogersik/monica:cache,mode=max \
 | 
			
		||||
            --push \
 | 
			
		||||
            .
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user