File tree Expand file tree Collapse file tree 7 files changed +70
-50
lines changed
Expand file tree Collapse file tree 7 files changed +70
-50
lines changed Original file line number Diff line number Diff line change 1+ name : bake
2+
3+ on :
4+ push :
5+
6+ env :
7+ REGISTRY : ghcr.io
8+
9+ jobs :
10+ bake :
11+ runs-on : ubuntu-latest
12+ steps :
13+ -
14+ name : Checkout
15+ uses : actions/checkout@v4
16+ -
17+ name : Log in to the Container registry
18+ uses : docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
19+ with :
20+ registry : ${{ env.REGISTRY }}
21+ username : ${{ github.actor }}
22+ password : ${{ secrets.GITHUB_TOKEN }}
23+ -
24+ name : Set up Docker Buildx
25+ uses : docker/setup-buildx-action@v3
26+ -
27+ name : Build and push
28+ uses : docker/bake-action@v6
29+ with :
30+ source : .
31+ push : true
Original file line number Diff line number Diff line change 1+ name : Scan
2+ on :
3+ push :
4+ branches :
5+ - main
6+ - v1-docker
7+ jobs :
8+ sonarqube :
9+ name : SonarQube
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+ with :
14+ fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
15+ - name : SonarQube Scan
16+ uses : SonarSource/sonarqube-scan-action@v6
17+ env :
18+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ variable "GITHUB_REF_NAME" {
2+ default = " latest"
3+ }
4+
5+ variable "GITHUB_SHA" {
6+ default = " latest"
7+ }
8+
9+ target "default" {
10+ context = " ."
11+ args = {
12+ REVISION = " ${ GITHUB_SHA } "
13+ }
14+ dockerfile = " Dockerfile"
15+ tags = [" ghcr.io/semaforinformatik/config-controller:${ GITHUB_REF_NAME } " , " ghcr.io/semaforinformatik/config-controller:latest-v1" ]
16+ cache-from = [" type=gha,scope=webtens" ]
17+ cache-to = [" type=gha,mode=max,scope=webtens" ]
18+ }
19+
Original file line number Diff line number Diff line change 33replicaCount : 1
44
55image :
6- repository : hub.semafor.ch/semafor /config-controller
6+ repository : ghcr.io/semaforinformatik /config-controller
77 pullPolicy : IfNotPresent
88 # Overrides the image tag whose default is the chart appVersion.
99 tag : " "
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ metadata:
44 name : config-controller
55build :
66 artifacts :
7- - image : hub.semafor.ch/semafor /config-controller
7+ - image : ghcr.io/semaforinformatik /config-controller
88 docker :
99 dockerfile : Dockerfile-alpine
1010manifests :
You can’t perform that action at this time.
0 commit comments