Provide support for large job arguments #1027
Workflow file for this run
This file contains 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: Build the containers | |
on: | |
pull_request: | |
permissions: | |
contents: read | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build-containers: | |
name: build-containers | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false # keep running if one leg fails | |
matrix: | |
dockerfile: | |
- Dockerfile-ray-node | |
- gateway/Dockerfile | |
python: | |
- "3.11" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #4.1.7 | |
- name: Setup buildx | |
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db #3..6.1 | |
- name: Config python value | |
run: | | |
python_version=${{ matrix.python }} | |
dockerfile=${{ matrix.dockerfile }} | |
# ray-node image uses different string for python version | |
if [[ "$dockerfile" == *"ray-node" ]] | |
then | |
new_version=${python_version//.} | |
echo "python_version=py$new_version" >> "$GITHUB_ENV" | |
else | |
echo "python_version=$python_version" >> "$GITHUB_ENV" | |
fi | |
- name: Build ${{ matrix.dockerfile }} using python ${{ matrix.python }} | |
uses: docker/build-push-action@5176d81f87c23d6fc96624dfdbcd9f3830bbe445 #6.5.0 | |
with: | |
context: . | |
file: ./${{ matrix.dockerfile }} | |
load: true | |
tags: image:test | |
- name: Inspect | |
run: | | |
docker image inspect image:test |