name: docker-monica-build development on: push: branches-ignore: - main # Läuft auf allen Branches außer `main` jobs: dockerfile_lint: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - uses: hadolint/hadolint-action@v3.1.0 with: dockerfile: Dockerfile build: needs: dockerfile_lint runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - name: Clean Branch Name id: clean_branch_name run: | CLEANED_BRANCH_NAME=$(echo "${GITHUB_REF_NAME}" | tr '[:upper:]' '[:lower:]' | tr -c 'a-z0-9_.-' '-') 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 }}