@@ -1,9 +1,9 @@
 | 
				
			|||||||
name: docker-monica-build mr
 | 
					name: docker-monica-build development
 | 
				
			||||||
 | 
					
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
  push:
 | 
					  push:
 | 
				
			||||||
    branches-ignore:
 | 
					    branches-ignore:
 | 
				
			||||||
      - main
 | 
					      - main # Läuft auf allen Branches außer `main`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  dockerfile_lint:
 | 
					  dockerfile_lint:
 | 
				
			||||||
@@ -19,12 +19,17 @@ jobs:
 | 
				
			|||||||
    runs-on: ubuntu-22.04
 | 
					    runs-on: ubuntu-22.04
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v4
 | 
					      - uses: actions/checkout@v4
 | 
				
			||||||
 | 
					      - 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
 | 
					      - name: Kaniko build
 | 
				
			||||||
        uses: aevea/action-kaniko@master
 | 
					        uses: aevea/action-kaniko@v0.12.0
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          image: rogersik/monica
 | 
					          image: rogersik/monica
 | 
				
			||||||
          registry: gitea.sikorski.cloud
 | 
					          registry: gitea.sikorski.cloud
 | 
				
			||||||
          tag: "4.1-dev"
 | 
					          tag: "${{ env.CLEAN_BRANCH_NAME }}"
 | 
				
			||||||
          cache: true
 | 
					          cache: true
 | 
				
			||||||
          username: rogersik
 | 
					          username: rogersik
 | 
				
			||||||
          password: ${{ secrets.REGISTRY_PASSWORD }}
 | 
					          password: ${{ secrets.REGISTRY_PASSWORD }}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,11 +1,8 @@
 | 
				
			|||||||
---
 | 
					 | 
				
			||||||
name: docker-monica-build main
 | 
					name: docker-monica-build main
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
  push:
 | 
					  push:
 | 
				
			||||||
    branches:
 | 
					    tags:
 | 
				
			||||||
      - main
 | 
					      - '[0-9]+.*'
 | 
				
			||||||
  schedule:
 | 
					 | 
				
			||||||
    - cron: '0 6 * * SUN'
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  dockerfile_lint:
 | 
					  dockerfile_lint:
 | 
				
			||||||
@@ -21,14 +18,17 @@ jobs:
 | 
				
			|||||||
    runs-on: ubuntu-22.04
 | 
					    runs-on: ubuntu-22.04
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v4
 | 
					      - uses: actions/checkout@v4
 | 
				
			||||||
 | 
					      - name: Extract Git Tag
 | 
				
			||||||
 | 
					        id: get_tag
 | 
				
			||||||
 | 
					        run: echo "TAG=${GITHUB_REF_NAME}" >> $GITHUB_ENV
 | 
				
			||||||
      - name: Kaniko build
 | 
					      - name: Kaniko build
 | 
				
			||||||
        # https://github.com/aevea/action-kaniko/releases
 | 
					 | 
				
			||||||
        uses: aevea/action-kaniko@v0.12.0
 | 
					        uses: aevea/action-kaniko@v0.12.0
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          image: rogersik/monica
 | 
					          image: rogersik/monica
 | 
				
			||||||
          registry: gitea.sikorski.cloud
 | 
					          registry: gitea.sikorski.cloud
 | 
				
			||||||
          tag: '4.1'
 | 
					          tag: '${{ env.TAG }}'
 | 
				
			||||||
          # tag_with_latest: true # https://github.com/aevea/action-kaniko/issues/66
 | 
					 | 
				
			||||||
          cache: true
 | 
					          cache: true
 | 
				
			||||||
 | 
					          build_args: |
 | 
				
			||||||
 | 
					            GIT_TAG=${{ env.TAG }}
 | 
				
			||||||
          username: rogersik
 | 
					          username: rogersik
 | 
				
			||||||
          password: ${{ secrets.REGISTRY_PASSWORD }}
 | 
					          password: ${{ secrets.REGISTRY_PASSWORD }}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
# https://hub.docker.com/_/monica
 | 
					# https://hub.docker.com/_/monica
 | 
				
			||||||
FROM monica:4.1
 | 
					FROM monica:$GIT_TAG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN \
 | 
					RUN \
 | 
				
			||||||
  # Use the default production configuration
 | 
					  # Use the default production configuration
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user