Skip to content

Commit

Permalink
fix: move each data folder to mounted volume/shallow clone/remove tma…
Browse files Browse the repository at this point in the history
…te debug
  • Loading branch information
Naramsim committed Jan 13, 2025
1 parent 652b625 commit 34aae15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/docker-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@ jobs:
with:
cluster_name: pokeapi
version: v0.21.0
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
detached: true
limit-access-to-actor: true
- name: Create deployment configuration
run: |
cp Resources/k8s/kustomize/base/secrets/postgres.env.sample Resources/k8s/kustomize/base/secrets/postgres.env
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ spec:
image: alpine:3.21.2
command: ['sh', '-c']
args:
- apk add --update git && git clone --recurse-submodules https://github.com/PokeAPI/pokeapi.git && mv /tmp/pokeapi/data/v2/* /tmp
workingDir: /tmp
- apk add --update git &&
git clone --depth=1 --single-branch --branch=master --recurse-submodules --shallow-submodules https://github.com/PokeAPI/pokeapi.git &&
mv /code/pokeapi/data/v2/cries/* /tmp/cries/ &&
mv /code/pokeapi/data/v2/csv/* /tmp/csv/ &&
mv /code/pokeapi/data/v2/sprites/* /tmp/sprites/
workingDir: /code
volumeMounts:
- mountPath: /tmp/cries
name: cries-data-share
Expand Down

0 comments on commit 34aae15

Please sign in to comment.