File tree 22 files changed +38
-37
lines changed
otomi-pipelines/templates
22 files changed +38
-37
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ Get familiar with the `schemas/Readme.md` file
25
25
26
26
- [ ] Kubectl [ version skew] ( https://kubernetes.io/releases/version-skew-policy/#kubectl ) from is compatible with all three supported k8s versions
27
27
- [ ] Helm [ version skew] ( https://helm.sh/docs/topics/version_skew/#supported-version-skew ) from is compatible with all three supported k8s versions
28
- - [ ] A new otomi/ tools version is published
29
- - [ ] The otomi/ tools version is used by the otomi/ core image
28
+ - [ ] A new linode/apl- tools version is published
29
+ - [ ] The linode/apl- tools version is used by the linode/apl- core image
30
30
31
31
** .github/workflows**
32
32
Original file line number Diff line number Diff line change 123
123
env :
124
124
CACHE_REGISTRY : ghcr.io
125
125
CACHE_REPO : linode/apl-core
126
- REPO : otomi/ core
126
+ REPO : linode/apl- core
127
127
GIT_USER : svcAPLBot
128
128
SCALEWAY_NODE_TYPE : PRO2-M
129
129
SCALEWAY_NODE_POOL_MIN_SIZE : 3
Original file line number Diff line number Diff line change 8
8
env :
9
9
CACHE_REGISTRY : ghcr.io
10
10
CACHE_REPO : linode/apl-core
11
- REPO : otomi/core
11
+ REPO : linode/apl-core
12
+ DOCKER_PASSWORD : ${{ secrets.DOCKERHUB_LINODEBOT_TOKEN }}
13
+ DOCKER_USERNAME : ${{ vars.DOCKERHUB_LINODEBOT_USERNAME }}
12
14
13
15
jobs :
14
16
build-test-cache :
60
62
image="$CACHE_REGISTRY/$CACHE_REPO:$TAG"
61
63
docker pull $image
62
64
docker tag $image $REPO:$TAG
63
- docker login -u otomi -p ${{ secrets.DOCKERHUB_OTOMI_TOKEN }}
65
+ docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
64
66
docker push $REPO:$TAG
65
67
- name : Show me the logic
66
68
run : |
83
85
id : git_tag
84
86
run : |
85
87
TAG=${GITHUB_REF##*/}
86
- docker login -u otomi -p ${{ secrets.DOCKERHUB_OTOMI_TOKEN }}
88
+ docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
87
89
docker pull $REPO:$TAG
88
90
docker tag $REPO:$TAG $REPO:latest
89
91
docker push $REPO:latest
@@ -113,7 +115,7 @@ jobs:
113
115
if : always() && contains(needs.release.result, 'success') && !github.event.act
114
116
runs-on : ubuntu-latest
115
117
container :
116
- image : otomi/ tools:v1 .4.20
118
+ image : linode/apl- tools:v2 .4.0
117
119
options : --user 0
118
120
steps :
119
121
- name : Checkout
Original file line number Diff line number Diff line change 1
- name : Otomi Tools Build and Versioning
1
+ name : APL Tools Build and Versioning
2
2
3
3
on :
4
4
workflow_dispatch :
13
13
- ' main'
14
14
15
15
env :
16
- NAMESPACE : otomi
17
- REPO : tools
16
+ NAMESPACE : linode
17
+ REPO : apl- tools
18
18
19
19
jobs :
20
20
build-and-version :
76
76
if : ${{ env.NEW_VERSION != null }}
77
77
uses : docker/login-action@v3
78
78
with :
79
- username : ' otomi '
80
- password : ' ${{ secrets.DOCKERHUB_OTOMI_TOKEN }}'
79
+ username : ${{ vars.DOCKERHUB_LINODEBOT_USERNAME }}
80
+ password : ${{ secrets.DOCKERHUB_LINODEBOT_TOKEN }}
81
81
- name : image build and push tag for branch
82
82
if : ${{ env.NEW_VERSION != null }}
83
83
uses : docker/build-push-action@v5
Original file line number Diff line number Diff line change 1
- FROM otomi/ tools:v2.3 .0 as ci
1
+ FROM linode/apl- tools:v2.4 .0 as ci
2
2
3
3
ENV APP_HOME=/home/app/stack
4
4
@@ -27,7 +27,7 @@ FROM ci as clean
27
27
RUN npm prune --production
28
28
29
29
# -----------------------------
30
- FROM otomi/ tools:v2.3 .0 as prod
30
+ FROM linode/apl- tools:v2.4 .0 as prod
31
31
32
32
ENV APP_HOME=/home/app/stack
33
33
ENV ENV_DIR=/home/app/stack/env
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ LOG_LEVEL='--log-level warn'
18
18
19
19
# Common vars
20
20
readonly otomi_settings=" $ENV_DIR /env/settings.yaml"
21
- readonly otomi_tools_image=" otomi/ core:latest"
21
+ readonly otomi_tools_image=" linode/apl- core:latest"
22
22
[ $( uname -s) == ' Linux' ] && readonly LINUX_WORKAROUND=' --user=root:root'
23
23
24
24
# Mutliple files vars
Original file line number Diff line number Diff line change 3
3
``` sh
4
4
# In the apl-core directory
5
5
export DOCKER_TAG=binzx
6
- docker build --target prod -t otomi/ core:binzx .
6
+ docker build --target prod -t linode/apl- core:binzx .
7
7
./binzx/otomi < commands here>
8
8
```
9
9
Original file line number Diff line number Diff line change 8
8
# # - do not depend on any external files.
9
9
# # - do not use any non standard tooling.
10
10
# # - only Docker is needed to run apl-core image
11
- # # If you need to use any extra binaries then most probably you want to add them to the otomi/ tools image.
11
+ # # If you need to use any extra binaries then most probably you want to add them to the linode/apl- tools image.
12
12
# #
13
13
# ####################################################################################
14
14
# shellcheck disable=SC2128
90
90
fi
91
91
otomi_branch_or_tag=${OTOMI_TAG:- $otomi_version }
92
92
otomi_version_used=${OTOMI_TAG:- $otomi_version }
93
- readonly otomi_tools_image=" otomi/ core:${otomi_version_used} "
93
+ readonly otomi_tools_image=" linode/apl- core:${otomi_version_used} "
94
94
95
95
script_full_path=" $base_dir /${BASH_SOURCE[0]##*/ } "
96
96
if [[ ${BASH_SOURCE[0]} == ' /' * ]]; then
Original file line number Diff line number Diff line change 1
1
{{- $kms := .Values.kms | default dict }}
2
- {{- $imageName := .Values.imageName | default "otomi/ core" }}
2
+ {{- $imageName := .Values.imageName | default "linode/apl- core" }}
3
3
{{- $version := .Values.otomi.version | default .Chart.AppVersion }}
4
4
apiVersion : batch/v1
5
5
kind : Job
Original file line number Diff line number Diff line change 29
29
type : RuntimeDefault
30
30
containers :
31
31
- name : destroy
32
- image : otomi/ core:{{ $version }}
32
+ image : linode/apl- core:{{ $version }}
33
33
imagePullPolicy : {{ ternary "IfNotPresent" "Always" (regexMatch "^v\\d" $version) }}
34
34
securityContext :
35
35
allowPrivilegeEscalation : false
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ core: {}
102
102
tools :
103
103
image :
104
104
registry : docker.io
105
- repository : otomi/ core
105
+ repository : linode/apl- core
106
106
tag : latest
107
107
pullPolicy : IfNotPresent
108
108
Original file line number Diff line number Diff line change 32
32
stepTemplate :
33
33
computeResources : {{- toYaml .Values.tektonTask.resources | nindent 6 }}
34
34
workingDir : $(workspaces.source.path)
35
- image : otomi/ core:{{ .Values.otomiVersion }}
35
+ image : linode/apl- core:{{ .Values.otomiVersion }}
36
36
steps :
37
37
- name : git-clone
38
38
computeResources : {}
Original file line number Diff line number Diff line change 23
23
stepTemplate :
24
24
computeResources : {{- toYaml .Values.tektonTask.resources | nindent 6 }}
25
25
imagePullPolicy : Always
26
- image : otomi/ core:$(params["OTOMI_VERSION"])
26
+ image : linode/apl- core:$(params["OTOMI_VERSION"])
27
27
workingDir : /home/app/stack
28
28
{{- if hasKey $kms "sops" }}
29
29
envFrom :
Original file line number Diff line number Diff line change 23
23
stepTemplate :
24
24
computeResources : {{- toYaml .Values.tektonTask.resources | nindent 6 }}
25
25
imagePullPolicy : Always
26
- image : otomi/ core:$(params["OTOMI_VERSION"])
26
+ image : linode/apl- core:$(params["OTOMI_VERSION"])
27
27
workingDir : /home/app/stack
28
28
{{- if hasKey $kms "sops" }}
29
29
envFrom :
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ services:
25
25
26
26
tools :
27
27
container_name : tools
28
- image : otomi/ core:${TOOLS_TAG:-latest}
28
+ image : linode/apl- core:${TOOLS_TAG:-latest}
29
29
user : ${USER_ID}:${GROUP_ID}
30
30
command : npm run compile && node --no-warnings ./dist/src/otomi.js -- server
31
31
depends_on :
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ environments:
122
122
quay.io/prometheus-operator/prometheus-operator,
123
123
quay.io/prometheus/prometheus,
124
124
quay.io/kiwigrid/k8s-sidecar,
125
- docker.io/otomi/ core,
125
+ docker.io/linode/apl- core,
126
126
docker.io/linode/apl-tasks,
127
127
docker.io/linode/apl-api,
128
128
docker.io/drone/drone-runner-kube,
@@ -163,7 +163,7 @@ environments:
163
163
condition: (
164
164
container.image.repository in (
165
165
docker.io/linode/apl-tasks,
166
- ocker .io/otomi/ core
166
+ docker .io/linode/apl- core
167
167
) or (k8s.ns.name = "drone-pipelines")
168
168
)
169
169
- macro: user_known_non_sudo_setuid_conditions
Original file line number Diff line number Diff line change 5
5
{{- $skipScript := . | get "skipScript" false }}
6
6
{{- $task := . | get "task" nil }}
7
7
{{- $type := . | get "type" "job" }}
8
- {{- $repositoryPrefix := default "otomi/" (index . "repositoryPrefix" | default "") }}
9
8
image:
10
9
registry: docker.io
11
- repository: {{ $repositoryPrefix }} {{ .item }}
10
+ repository: linode/apl- {{ .item }}
12
11
tag: {{ printf "%s%s" ($isSemver | ternary "v" "") $version }}
13
12
pullPolicy: {{ $isSemver | ternary "IfNotPresent" "Always" }}
14
13
{{ if $v._derived.untrustedCA }}
Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ export const bootstrap = async (
359
359
const { ENV_DIR } = env
360
360
const hasOtomi = await deps . pathExists ( `${ ENV_DIR } /bin/otomi` )
361
361
362
- const otomiImage = `otomi/ core:${ tag } `
362
+ const otomiImage = `linode/apl- core:${ tag } `
363
363
d . log ( `Installing artifacts from ${ otomiImage } ` )
364
364
await deps . copyBasicFiles ( )
365
365
await deps . migrate ( )
Original file line number Diff line number Diff line change 1
- # Building otomi/ tools container image
1
+ # Building linode/apl- tools container image
2
2
3
3
```
4
- docker build . -f Dockerfile -t otomi/ tools:<TAG>
4
+ docker build . -f Dockerfile -t linode/apl- tools:<TAG>
5
5
```
6
6
7
- # Building otomi/ tools-db container image
7
+ # Building linode/apl- tools-db container image
8
8
9
9
```
10
- docker build . -f Dockerfile-db -t otomi/ tools-db:<TAG>
10
+ docker build . -f Dockerfile-db -t linode/apl- tools-db:<TAG>
11
11
```
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ resources:
24
24
memory: 256Mi
25
25
{{- end }}
26
26
27
- {{- tpl (readFile "../../helmfile.d/snippets/job.gotmpl") (dict "repositoryPrefix" "linode/apl-" " item" "api" "v" $v "skipScript" true) }}
27
+ {{- tpl (readFile "../../helmfile.d/snippets/job.gotmpl") (dict "item" "api" "v" $v "skipScript" true) }}
28
28
29
29
secrets:
30
30
GIT_USER: otomi-admin
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ resources:
15
15
memory: 128Mi
16
16
{{- end }}
17
17
18
- {{- tpl (readFile "../../helmfile.d/snippets/job.gotmpl") (dict "repositoryPrefix" "linode/apl-" " item" "console" "v" $v "skipScript" true ) }}
18
+ {{- tpl (readFile "../../helmfile.d/snippets/job.gotmpl") (dict "item" "console" "v" $v "skipScript" true ) }}
19
19
20
20
env:
21
21
API_BASE_URL: /api
Original file line number Diff line number Diff line change 1
1
api : main
2
2
console : main
3
3
tasks : main
4
- tools : 1.6.4
4
+ tools : 2.4.0
You can’t perform that action at this time.
0 commit comments