Skip to content

Commit 34aae15

Browse files
committed
fix: move each data folder to mounted volume/shallow clone/remove tmate debug
1 parent 652b625 commit 34aae15

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/docker-k8s.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,6 @@ jobs:
7070
with:
7171
cluster_name: pokeapi
7272
version: v0.21.0
73-
- name: Setup tmate session
74-
uses: mxschmitt/action-tmate@v3
75-
with:
76-
detached: true
77-
limit-access-to-actor: true
7873
- name: Create deployment configuration
7974
run: |
8075
cp Resources/k8s/kustomize/base/secrets/postgres.env.sample Resources/k8s/kustomize/base/secrets/postgres.env

Resources/k8s/kustomize/base/deployments/pokeapi-deployment.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@ spec:
2727
image: alpine:3.21.2
2828
command: ['sh', '-c']
2929
args:
30-
- apk add --update git && git clone --recurse-submodules https://github.com/PokeAPI/pokeapi.git && mv /tmp/pokeapi/data/v2/* /tmp
31-
workingDir: /tmp
30+
- apk add --update git &&
31+
git clone --depth=1 --single-branch --branch=master --recurse-submodules --shallow-submodules https://github.com/PokeAPI/pokeapi.git &&
32+
mv /code/pokeapi/data/v2/cries/* /tmp/cries/ &&
33+
mv /code/pokeapi/data/v2/csv/* /tmp/csv/ &&
34+
mv /code/pokeapi/data/v2/sprites/* /tmp/sprites/
35+
workingDir: /code
3236
volumeMounts:
3337
- mountPath: /tmp/cries
3438
name: cries-data-share

0 commit comments

Comments
 (0)