# Debugging a GitLab CI job locally on Apple Silicon I use GitLab CI scripts that rely on Docker images, and these images aren't multi-arch. The only platform available is `linux/amd64`. So, the first thing I need is to tell `gitlab-ci-local` to run the containers using the `linux/amd64` platform: ```bash export DOCKER_DEFAULT_PLATFORM=linux/amd64 ``` Then, I create a file named `.gitlab-ci-local-variables.yml` to set up the variables as they appear in the project's secret variables: ```bash $ cat .gitlab-ci-local-variables.yml GITHUB_DEPLOY_KEY: LS0tLS1CRUdJ...0VZLS0tLS0K ``` Then, I run the job I want to debug: ```bash gitlab-ci-local test-and-build ```