diff --git a/.github/workflows/docker-k8s.yml b/.github/workflows/docker-k8s.yml index 9cfc3f7af..a03e3a9d8 100644 --- a/.github/workflows/docker-k8s.yml +++ b/.github/workflows/docker-k8s.yml @@ -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 diff --git a/Resources/k8s/kustomize/base/deployments/pokeapi-deployment.yaml b/Resources/k8s/kustomize/base/deployments/pokeapi-deployment.yaml index b71a25cbb..1bc5d5eb0 100644 --- a/Resources/k8s/kustomize/base/deployments/pokeapi-deployment.yaml +++ b/Resources/k8s/kustomize/base/deployments/pokeapi-deployment.yaml @@ -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