1
0
mirror of https://github.com/Kovah/LinkAce.git synced 2025-03-11 02:10:59 +01:00

Adjust CI and CD pipelines, as well as Dependabot config

This commit is contained in:
Kovah 2024-07-17 12:09:40 +02:00
parent b76b6a9eb4
commit 22388ad678
No known key found for this signature in database
GPG Key ID: AAAA031BA9830D7B
5 changed files with 13 additions and 29 deletions

View File

@ -2,7 +2,7 @@ version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
target-branch: "dev"
target-branch: "2.x"
schedule:
interval: "weekly"
groups:
@ -16,7 +16,7 @@ updates:
- package-ecosystem: "composer"
directory: "/"
target-branch: "dev"
target-branch: "2.x"
schedule:
interval: "weekly"
groups:
@ -30,7 +30,7 @@ updates:
- package-ecosystem: "docker"
directory: "/"
target-branch: "dev"
target-branch: "2.x"
schedule:
interval: "weekly"
groups:
@ -40,7 +40,7 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
target-branch: "dev"
target-branch: "2.x"
schedule:
interval: "weekly"
groups:

View File

@ -3,7 +3,7 @@ name: Analyze
on:
push:
branches:
- main
- 2.x
jobs:

View File

@ -1,10 +1,10 @@
---
name: Build the LinkAce Docker image
name: Build the v2 LinkAce Docker image
on:
push:
tags:
- "*"
- "v2.*"
jobs:
build_regular_docker:
@ -38,9 +38,9 @@ jobs:
run: |
DOCKER_IMAGE=linkace/linkace
DOCKER_IMAGE_GITHUB=ghcr.io/kovah/linkace
MAJOR_VERSION=1.x
MAJOR_VERSION=2.x
VERSION=${GITHUB_REF#refs/tags/}
TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:${MAJOR_VERSION},${DOCKER_IMAGE}:latest,${DOCKER_IMAGE_GITHUB}:${VERSION},${DOCKER_IMAGE_GITHUB}:${MAJOR_VERSION},${DOCKER_IMAGE_GITHUB}:latest"
TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:${MAJOR_VERSION},${DOCKER_IMAGE_GITHUB}:${VERSION},${DOCKER_IMAGE_GITHUB}:${MAJOR_VERSION}"
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
- name: Build and push advanced image
@ -51,22 +51,3 @@ jobs:
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: ${{ steps.prep.outputs.tags }}
- name: Prepare simple tags
id: prep-simple
run: |
DOCKER_IMAGE=linkace/linkace
DOCKER_IMAGE_GITHUB=ghcr.io/kovah/linkace
VERSION=${GITHUB_REF#refs/tags/}
MAJOR_VERSION=1.x
TAGS="${DOCKER_IMAGE}:${VERSION}-php-nginx,${DOCKER_IMAGE}:${MAJOR_VERSION}-php-nginx,${DOCKER_IMAGE}:php-nginx,${DOCKER_IMAGE}:${VERSION}-simple,${DOCKER_IMAGE}:${MAJOR_VERSION}-simple,${DOCKER_IMAGE}:simple,${DOCKER_IMAGE_GITHUB}:${VERSION}-php-nginx,${DOCKER_IMAGE_GITHUB}:${MAJOR_VERSION}-php-nginx,${DOCKER_IMAGE_GITHUB}:php-nginx,${DOCKER_IMAGE_GITHUB}:${VERSION}-simple,${DOCKER_IMAGE_GITHUB}:${MAJOR_VERSION}-simple,${DOCKER_IMAGE_GITHUB}:simple"
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
- name: Build and push simple image
uses: docker/build-push-action@v6
with:
context: .
file: ./resources/docker/dockerfiles/release-multiplatform-simple.Dockerfile
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: ${{ steps.prep-simple.outputs.tags }}

View File

@ -3,7 +3,7 @@ name: Build Release Package
on:
push:
branches:
- main
- 2.x
jobs:
build-package:

View File

@ -2,6 +2,9 @@ name: Testing
on:
pull_request:
push:
branches:
- 2.x
jobs: