Skip to content

Commit

Permalink
feat: Use no-k8s autodevops mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-van-woerkens committed Mar 15, 2021
1 parent d6aafd8 commit fd229f9
Show file tree
Hide file tree
Showing 17 changed files with 10 additions and 4,712 deletions.
33 changes: 5 additions & 28 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,14 @@
include:
- project: SocialGouv/gitlab-ci-yml
file: /autodevops.yml
ref: v20.1.5
ref: v20.7.10

variables:
AUTO_DEVOPS_KANIKO: "pouet"
AUTO_DEVOPS_RELEASE_AUTO: "🔖"
AUTO_DEVOPS_ENABLE_KAPP: "plop"
AUTO_DEVOPS_PRODUCTION_AUTO: "🚀"

# NOTE(douglasduteil): No install :(
# sharing the node_modules is too slow...
Install:
rules:
- when: never

Lint:
rules:
- when: never

Test:
rules:
- when: never

# NOTE(douglasduteil): use custom build job
# The website it statically built with Nextjs
# Here we manually run `yarn next export` and reuse the `out` dir in Dockerfile
Build:
needs: []
cache:
Expand All @@ -36,19 +21,11 @@ Build:
script:
- yarn config set cache-folder $CI_PROJECT_DIR/.cache/yarn
- yarn --frozen-lockfile --prefer-offline
- yarn next build
- yarn next export
- yarn build
- yarn export
variables:
VERSION: ${CI_COMMIT_SHORT_SHA}
artifacts:
expire_in: 1 day
paths:
- out

# NOTE(julienbouquillon): use custom register job
# By default, kosko-charts use a "/app" for default docker images names
# TODO: discuss
Register image:
extends: .autodevops_register_image
variables:
IMAGE_NAME: $CI_REGISTRY_IMAGE/app
152 changes: 0 additions & 152 deletions .k8s/__tests__/__snapshots__/kosko generate --env dev.ts.snap

This file was deleted.

152 changes: 0 additions & 152 deletions .k8s/__tests__/__snapshots__/kosko generate --env preprod.ts.snap

This file was deleted.

Loading

0 comments on commit fd229f9

Please sign in to comment.