Repository navigation
Bump docker/build-push-action from 6 to 7 #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Validate the egg | |
| run: | | |
| jq -e '.meta.version == "PTDL_v2"' egg-python.json >/dev/null | |
| # tr: the panel saves the install script with Windows line endings | |
| version=$(jq -r '.scripts.installation.script' egg-python.json \ | |
| | tr -d '\r' \ | |
| | sed -n 's/^EGG_VERSION="\([^"]*\)"$/\1/p' | head -n 1) | |
| if [ -z "${version}" ]; then | |
| echo "::error::EGG_VERSION not found in the egg's install script" | |
| exit 1 | |
| fi | |
| echo "Egg version ${version}" | |
| - name: Check the scripts | |
| run: | | |
| jq -r '.scripts.installation.script' egg-python.json | tr -d '\r' > /tmp/install.sh | |
| shellcheck -s sh -e SC3043 /tmp/install.sh | |
| shellcheck docker/entrypoint.sh docker/rustix/start.sh | |
| python3 -m py_compile docker/rustix/manager.py docker/rustix/deps.py | |
| - uses: docker/setup-buildx-action@v3 | |
| # Build only, the images are published by build-images.yml | |
| - uses: docker/build-push-action@v7 | |
| with: | |
| context: ./docker | |
| platforms: linux/amd64 | |
| build-args: | | |
| PYTHON_VERSION=3.13 | |
| pull: true | |
| push: false |