Compare commits

...

29 commits

Author SHA1 Message Date
bd53914cc3 Update symlink path for Sonar Scanner in Dockerfile
Corrected the symlink path to align with the extracted directory name. This ensures the Sonar Scanner binary is properly accessible from the expected location.
2025-05-19 20:24:05 +02:00
2f3f02ae5a Add CI workflows and update Dockerfile dependencies
Introduce GitHub Actions workflows for building and pushing Docker images on master branch pushes and tag pushes. Update Dockerfile base image to Node.js 22 and upgrade Sonar Scanner CLI to version 7.1.0 for improved compatibility and features.
2025-05-19 20:19:02 +02:00
d3575ea71a
- fix env variables 2023-11-04 20:21:21 +01:00
eaedf50f1c
- add envinfo 2023-11-04 20:20:22 +01:00
626d91d9c0
- dump installed version at the end of the pipe 2023-11-04 20:17:38 +01:00
894c848c24
- bump sonar cli to 5.0.1.3006 2023-11-04 20:16:28 +01:00
8048dc7a61
- bump sonar cli to 5.0.1.3006 2023-11-04 19:25:45 +01:00
b34b6d33f4
- fix issue with build CI 2023-11-04 18:40:03 +01:00
f4b433d0c8
- fix issue with build CI 2023-11-04 18:37:53 +01:00
5391d631f1 Update .woodpecker.yml 2023-11-04 18:30:51 +01:00
19fb7448b4 Update .woodpecker.yml 2023-11-04 18:29:51 +01:00
9aeecf2f7a Update .woodpecker.yml 2023-11-04 18:29:24 +01:00
82884bd2d6 Update Dockerfile 2023-11-04 18:28:39 +01:00
af3589a64e
migrate CI to forgejo 2023-04-24 19:20:07 +02:00
dc425857e8
migrate CI to forgejo 2023-04-24 19:15:04 +02:00
1e71bd09d6
migrate CI to forgejo 2023-04-24 18:47:12 +02:00
5496864b2b
migrate CI to forgejo 2023-04-24 18:45:19 +02:00
b928898252
migrate CI to forgejo 2023-04-24 18:42:04 +02:00
e7fa01a4f8
migrate CI to forgejo 2023-04-24 18:41:47 +02:00
715d35911c
migrate CI to forgejo 2023-04-24 18:40:01 +02:00
fc184720e6
migrate CI to forgejo 2023-04-24 18:28:44 +02:00
f30a830236
migrate CI to forgejo 2023-04-24 18:27:05 +02:00
2d892c8843
migrate CI to forgejo 2023-04-23 20:09:10 +02:00
9eb1b24f01
migrate CI to forgejo 2023-04-23 17:44:17 +02:00
b4068cf438
migrate CI to forgejo 2023-04-23 17:41:44 +02:00
624c780897
migrate CI to forgejo 2023-04-23 17:38:14 +02:00
51b31ac915
migrate CI to forgejo 2023-04-23 17:18:40 +02:00
5d5cd7d3b1
migrate CI to forgejo 2023-04-23 17:15:35 +02:00
32fc79baf3 update sonar to 4.8.0.2856 and use node:16 as base image 2023-04-09 18:18:22 +00:00
5 changed files with 86 additions and 4 deletions

View file

@ -0,0 +1,23 @@
on:
push:
branches:
- 'master'
jobs:
docker-master:
runs-on: docker
container:
image: git.van-hemmen.com/actions/kaniko:25.21.1
steps:
- name: Build & push with Kaniko
run: /bin/build.sh
env:
# --- mandatory --------------------------------------------------------
KANIKO_CONTEXT: git://git.van-hemmen.com/GuillaumeHemmen/sonar-scanner.git
GIT_REF_NAME: ${{ github.ref_name }}
GIT_USERNAME: ${{ secrets.docker_username }}
GIT_PASSWORD: ${{ secrets.access_token }}
# --- optional (only needed when you plan to push) ---------------------
REGISTRY_USER: ${{ secrets.docker_username }}
REGISTRY_PASS: ${{ secrets.access_token }}
KANIKO_DESTINATION: git.van-hemmen.com/guillaumehemmen/sonar-scanner:${GITHUB_SHA},git.van-hemmen.com/guillaumehemmen/sonar-scanner:latest

View file

@ -0,0 +1,23 @@
on:
push:
tags:
- '*'
jobs:
docker-tag:
runs-on: docker
container:
image: git.van-hemmen.com/actions/kaniko:25.21.1
steps:
- name: Build & push with Kaniko
run: /bin/build.sh
env:
# --- mandatory --------------------------------------------------------
KANIKO_CONTEXT: git://git.van-hemmen.com/GuillaumeHemmen/sonar-scanner.git
GIT_REF_NAME: ${{ github.ref_name }}
GIT_USERNAME: ${{ secrets.docker_username }}
GIT_PASSWORD: ${{ secrets.access_token }}
# --- optional (only needed when you plan to push) ---------------------
REGISTRY_USER: ${{ secrets.docker_username }}
REGISTRY_PASS: ${{ secrets.access_token }}
KANIKO_DESTINATION: git.van-hemmen.com/guillaumehemmen/sonar-scanner:${GITHUB_REF_NAME},git.van-hemmen.com/guillaumehemmen/sonar-scanner:latest

35
.woodpecker.yml Normal file
View file

@ -0,0 +1,35 @@
steps:
env-info:
image: ubuntu:latest
commands:
- printenv
docker-master:
image: woodpeckerci/plugin-docker-buildx
settings:
repo: git.van-hemmen.com/guillaumehemmen/sonar-scanner
tags: latest,${CI_COMMIT_SHA}
registry: git.van-hemmen.com
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event:
- push
- manual
branch: 'master'
docker-tag:
image: woodpeckerci/plugin-docker-buildx
settings:
repo: git.van-hemmen.com/guillaumehemmen/sonar-scanner
tags: latest,${CI_COMMIT_TAG}
registry: git.van-hemmen.com
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event:
- tag

View file

@ -1,10 +1,11 @@
FROM debian:stretch
FROM node:22
LABEL maintainer="guillaume@van-hemmen.com"
RUN apt-get update && \
apt-get -y install wget unzip && \
cd /root/ && \
wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.7.0.2747-linux.zip && \
unzip sonar-scanner-cli-4.7.0.2747-linux.zip && \
ln -sf /root/sonar-scanner-4.7.0.2747-linux/bin/sonar-scanner /usr/local/bin/sonar-scanner
wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-7.1.0.4889-linux-x64.zip && \
unzip sonar-scanner-cli-7.1.0.4889-linux-x64.zip && \
ln -sf /root/sonar-scanner-7.1.0.4889-linux-x64/bin/sonar-scanner /usr/local/bin/sonar-scanner && \
/usr/local/bin/sonar-scanner --version