Skip to content

Commit b894889

Browse files
committed
docker bake
1 parent 3537ec5 commit b894889

File tree

7 files changed

+70
-50
lines changed

7 files changed

+70
-50
lines changed

.github/workflows/bake.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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

.github/workflows/scan.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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 }}

.gitlab-ci.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

create-image.sh

Lines changed: 0 additions & 27 deletions
This file was deleted.

docker-bake.hcl

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+

helm/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
replicaCount: 1
44

55
image:
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: ""

skaffold.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: config-controller
55
build:
66
artifacts:
7-
- image: hub.semafor.ch/semafor/config-controller
7+
- image: ghcr.io/semaforinformatik/config-controller
88
docker:
99
dockerfile: Dockerfile-alpine
1010
manifests:

0 commit comments

Comments
 (0)