This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Julien Bouquillon
authored
Feb 2, 2023
1 parent
1775d65
commit 2bc0257
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
# define docker registry options | ||
global: | ||
registry: harbor.fabrique.social.gouv.fr | ||
imageProject: fabrique | ||
imageRepository: template | ||
|
||
# main app container | ||
app: | ||
# wait for build-app before deployment | ||
~needs: [build-app] | ||
imagePackage: app | ||
containerPort: 8080 | ||
|
||
jobs: | ||
runs: | ||
# define a kubernetes job to build the docker image | ||
build-app: | ||
use: build | ||
with: | ||
imagePackage: app | ||
registrySecretRefName: harbor | ||
skipExisting: true | ||
buildOptions: --single-snapshot --ignore-path=/product_uuid --compressed-caching=false # optim for local builds | ||
# pass a custom docker build arg | ||
buildArgs: | ||
GITHUB_SHA: "{{ $.Values.global.sha }}" |