Skip to content

Commit

Permalink
CI: Workadoun by adding docker env variable for deprecated PXT docker…
Browse files Browse the repository at this point in the history
… image.
  • Loading branch information
microbit-carlos committed Jul 10, 2024
1 parent 7e095ba commit f2afc9d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/makecode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,15 @@ jobs:
f.write(json.dumps(pxt_target, indent=4))
EOF
git diff pxtarget.json
# https://docs.docker.com/engine/deprecated/#pushing-and-pulling-with-image-manifest-v2-schema-1
# https://stackoverflow.com/a/51357915/775259
- name: Workaround for issue with pext/yotta:latest docker image type being deprecated
run: |
sudo mkdir -p /etc/systemd/system/docker.service.d
sudo echo "[Service]" > /etc/systemd/system/docker.service.d/docker-service-override.conf
sudo echo 'Environment="DOCKER_ENABLE_DEPRECATED_PULL_SCHEMA_1_IMAGE=1"' >> /etc/systemd/system/docker.service.d/docker-service-override.conf
systemctl daemon-reload
systemctl restart docker
- name: Build MakeCode targets
# Because pxt runs docker with "--user build" it doesn't have write access to some mounted files,
# so we need to force all files created by the pxt cli to have write/execute rights for everyone
Expand Down

0 comments on commit f2afc9d

Please sign in to comment.