Commit b29b803c authored by Nicolas Pernoud's avatar Nicolas Pernoud
Browse files

devops: enabled github actions

parent dc19ba65
Pipeline #6145 passed with stages
in 2 minutes and 47 seconds
on:
push:
branches:
- "*"
pull_request:
types: [opened, synchronize, reopened]
name: Main Workflow
jobs:
scan-and-build:
runs-on: ubuntu-latest
steps:
- name: Code Checkout
uses: actions/checkout@v2
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Build container image and push to Docker Hub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: nicolaspernoud/vestibule
tag_with_ref: true
...@@ -32,6 +32,7 @@ sonarqube: ...@@ -32,6 +32,7 @@ sonarqube:
-Dsonar.host.url=${SONAR_URL} -Dsonar.host.url=${SONAR_URL}
-Dsonar.projectKey=${SONAR_PROJECT_KEY} -Dsonar.projectKey=${SONAR_PROJECT_KEY}
-Dsonar.login=${SONAR_TOKEN} -Dsonar.login=${SONAR_TOKEN}
-Dsonar.organization="default-organization"
build-master: build-master:
stage: build stage: build
......
sonar.organization=nicolaspernoud-github
sonar.projectKey=nicolaspernoud_Vestibule
# relative paths to source directories. More details and properties are described
# in https://sonarcloud.io/documentation/project-administration/narrowing-the-focus/
sonar.sources=.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment