Compare commits
	
		
			3 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						
						
							
						
						f90e5d75fa
	
				 | 
					
					
						|||
| 
						
						
							
						
						31d4ec5f27
	
				 | 
					
					
						|||
| 
						
						
							
						
						d61d4d6e7e
	
				 | 
					
					
						
							
								
								
									
										2
									
								
								.env
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								.env
									
									
									
									
									
								
							@@ -11,7 +11,7 @@ CARD_SUBTITLE=Kaya ist cool
 | 
			
		||||
CARD_BARCODEFORMAT=ean13
 | 
			
		||||
# CARD_BARCODEPREFIX=
 | 
			
		||||
 | 
			
		||||
SPONSOING_RECEIPTMINIMUM=10
 | 
			
		||||
SPONSOING_RECEIPTMINIMUM=40
 | 
			
		||||
SPONSORING_DISCLAIMER=Kaya ist cool, aber pass auf, dass du nicht zu viel Geld sammelst!
 | 
			
		||||
SPONSORING_BARCODEFORMAT=code128
 | 
			
		||||
# SPONSORING_BARCODEPREFIX=
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										27
									
								
								.gitea/workflows/dev.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								.gitea/workflows/dev.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,27 @@
 | 
			
		||||
name: Build latest image
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
      - main
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build-container:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Checkout
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
      - name: Login to registry
 | 
			
		||||
        uses: docker/login-action@v3
 | 
			
		||||
        with:
 | 
			
		||||
          registry: registry.odit.services
 | 
			
		||||
          username: ${{ vars.REGISTRY_USERNAME }}
 | 
			
		||||
          password: ${{ secrets.REGISTRY_PASSWORD }}
 | 
			
		||||
      - name: Set up Docker Buildx
 | 
			
		||||
        uses: docker/setup-buildx-action@v3
 | 
			
		||||
      - name: Build and push
 | 
			
		||||
        uses: docker/build-push-action@v6
 | 
			
		||||
        with:
 | 
			
		||||
          push: true
 | 
			
		||||
          tags: |
 | 
			
		||||
            ${{ vars.REGISTRY }}/lfk/document-server:latest
 | 
			
		||||
          platforms: linux/amd64,linux/arm64
 | 
			
		||||
							
								
								
									
										27
									
								
								.gitea/workflows/release.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								.gitea/workflows/release.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,27 @@
 | 
			
		||||
name: Build release images
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    tags:
 | 
			
		||||
      - "*.*.*"
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build-container:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Checkout
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
      - name: Login to registry
 | 
			
		||||
        uses: docker/login-action@v3
 | 
			
		||||
        with:
 | 
			
		||||
          registry: registry.odit.services
 | 
			
		||||
          username: ${{ vars.REGISTRY_USERNAME }}
 | 
			
		||||
          password: ${{ secrets.REGISTRY_PASSWORD }}
 | 
			
		||||
      - name: Set up Docker Buildx
 | 
			
		||||
        uses: docker/setup-buildx-action@v3
 | 
			
		||||
      - name: Build and push
 | 
			
		||||
        uses: docker/build-push-action@v6
 | 
			
		||||
        with:
 | 
			
		||||
          push: true
 | 
			
		||||
          tags: |
 | 
			
		||||
            ${{ vars.REGISTRY }}/lfk/document-server:${{ github.ref_name }}
 | 
			
		||||
          platforms: linux/amd64,linux/arm64
 | 
			
		||||
@@ -1,18 +0,0 @@
 | 
			
		||||
steps:
 | 
			
		||||
  - name: build latest
 | 
			
		||||
    image: woodpeckerci/plugin-docker-buildx
 | 
			
		||||
    settings:
 | 
			
		||||
      repo: registry.odit.services/lfk/document-server
 | 
			
		||||
      tags:
 | 
			
		||||
        - latest
 | 
			
		||||
      registry: registry.odit.services
 | 
			
		||||
      platforms: linux/amd64,linux/arm64
 | 
			
		||||
      cache_from: registry.odit.services/lfk/document-server:latest
 | 
			
		||||
      username:
 | 
			
		||||
        from_secret: odit-registry-builder-username
 | 
			
		||||
      password:
 | 
			
		||||
        from_secret: odit-registry-builder-password
 | 
			
		||||
    when:
 | 
			
		||||
      branch: main
 | 
			
		||||
when:
 | 
			
		||||
  event: push
 | 
			
		||||
@@ -1,17 +0,0 @@
 | 
			
		||||
steps:
 | 
			
		||||
  - name: build tag
 | 
			
		||||
    image: woodpeckerci/plugin-docker-buildx
 | 
			
		||||
    settings:
 | 
			
		||||
      repo: registry.odit.services/lfk/document-server
 | 
			
		||||
      tags:
 | 
			
		||||
        - "${CI_COMMIT_TAG}"
 | 
			
		||||
      registry: registry.odit.services
 | 
			
		||||
      platforms: linux/amd64,linux/arm64
 | 
			
		||||
      cache_from: registry.odit.services/lfk/document-server:latest
 | 
			
		||||
      username:
 | 
			
		||||
        from_secret: odit-registry-builder-username
 | 
			
		||||
      password:
 | 
			
		||||
        from_secret: odit-registry-builder-password
 | 
			
		||||
when:
 | 
			
		||||
  event:
 | 
			
		||||
    - tag
 | 
			
		||||
@@ -10,7 +10,7 @@ type Config struct {
 | 
			
		||||
	CardSubtitle             string `mapstructure:"CARD_SUBTITLE"`
 | 
			
		||||
	CardBarcodeFormat        string `mapstructure:"CARD_BARCODEFORMAT"`
 | 
			
		||||
	CardBarcodePrefix        string `mapstructure:"CARD_BARCODEPREFIX"`
 | 
			
		||||
	SponsoringReceiptMinimum int    `mapstructure:"SPONSOING_RECEIPTMINIMUM"`
 | 
			
		||||
	SponsoringReceiptMinimum string `mapstructure:"SPONSOING_RECEIPTMINIMUM"`
 | 
			
		||||
	SponosringDisclaimer     string `mapstructure:"SPONSORING_DISCLAIMER"`
 | 
			
		||||
	SponsoringBarcodeFormat  string `mapstructure:"SPONSORING_BARCODEFORMAT"`
 | 
			
		||||
	SponsoringBarcodePrefix  string `mapstructure:"SPONSORING_BARCODEPREFIX"`
 | 
			
		||||
 
 | 
			
		||||
@@ -24,7 +24,7 @@ type ContractTemplateOptions struct {
 | 
			
		||||
	Runners              []Runner `json:"runners"`
 | 
			
		||||
	CurrencySymbol       string   `json:"currency_symbol"`
 | 
			
		||||
	Disclaimer           string   `json:"disclaimer"`
 | 
			
		||||
	ReceiptMinimumAmount int      `json:"receipt_minimum_amount"`
 | 
			
		||||
	ReceiptMinimumAmount string   `json:"receipt_minimum_amount"`
 | 
			
		||||
	EventName            string   `json:"event_name"`
 | 
			
		||||
	BarcodeFormat        string   `json:"barcode_format"`
 | 
			
		||||
	BarcodePrefix        string   `json:"barcode_prefix"`
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user