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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
const theme = { | |
xxs: '10px', | |
xs: '15px', | |
m: '20px', | |
}; |
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
const { cancel } = actions; | |
const incrementPlayer = assign({ | |
currentPlayer: (context) => { | |
const currentPlayer = | |
context.currentPlayer === 4 ? 1 : context.currentPlayer + 1; | |
return currentPlayer; | |
}, | |
}); |
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
.base_register_stage: | |
stage: "Registration" | |
extends: .base_docker_image_stage | |
script: | |
- echo "$CI_JOB_TOKEN" | docker login $CI_REGISTRY -u gitlab-ci-token --password-stdin | |
- >- | |
if [[ -n "${CI_COMMIT_TAG}" ]]; then | |
export TAG=$(printf "${CI_COMMIT_TAG}" | sed "s/^v//") | |
echo "Register ${CI_COMMIT_TAG} tag as ${TAG}" | |
else |
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
.base_docker_image_stage: | |
image: docker:19 | |
services: | |
- docker:19-dind | |
.register_stage: | |
stage: "registration" | |
interruptible: true | |
dependencies: [] |
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
Build @planetexpress/app: | |
stage: "build" | |
variables: | |
INVALID_GIT_FILES_CHANGES: "true" | |
dependencies: | |
- Install app | |
needs: | |
- Install app | |
image: node:12-alpine | |
script: |
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
.base_yarn_workspace_install: | |
stage: "Prepare" | |
image: node:13-alpine | |
interruptible: true | |
script: | |
- "[[ type jq ]] || apk add jq=~1" | |
- apk add --no-cache --virtual .gyp make python gcc postgresql-dev g++ | |
- "{ rm package.json; jq 'del(.dependencies) | del(.devDependencies)' > package.json; } < package.json" | |
- yarn config set cache-folder $CI_PROJECT_DIR/.yarn | |
- yarn --frozen-lockfile |
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
.base_yarn_workspace_install: | |
stage: "Prepare" | |
image: node:13-alpine | |
interruptible: true | |
script: | |
- "[[ type jq ]] || apk add jq=~1" | |
- apk add --no-cache --virtual .gyp make python gcc postgresql-dev g++ | |
- "{ rm package.json; jq 'del(.dependencies) | del(.devDependencies)' > package.json; } < package.json" | |
- yarn config set cache-folder $CI_PROJECT_DIR/.yarn |
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
Install app: | |
extends: .base_yarn_workspace_install | |
variables: | |
CONTEXT: app | |
before_script: | |
- find packages -maxdepth 1 -type d -not -name app | tail -n +2 | xargs rm -rf | |
artifacts: | |
expire_in: 1 day | |
paths: | |
- node_modules |
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
$ kubectl get -n kube-system secret | |
NAME TYPE DATA AGE | |
default-token-2kmsr kubernetes.io/service-account-token 3 3m11s | |
gitlab-ci-token-jlc58 kubernetes.io/service-account-token 3 118s | |
# In this case the ServiceAccount token Secret is named `gitlab-ci-token-jlc58`, | |
# the name of the Secret will differ between clusters (it will always start with `gitlab-ci-token-`) | |
$ kubectl get -n kube-system secret gitlab-admin-token-jvt8w -o yaml | |
apiVersion: v1 | |
data: | |
ca.crt: [REDACATED] |
NewerOlder