mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-12 12:32:58 +00:00
Modernize build workflows
This commit is contained in:
14
.github/workflows/docker-amd64.yml
vendored
14
.github/workflows/docker-amd64.yml
vendored
@@ -57,33 +57,33 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone Main Repo
|
- name: Checkout Repo ⚡️
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set Up Python
|
- name: Set Up Python 🐍
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
|
|
||||||
- name: Install Dev Dependencies
|
- name: Install Dev Dependencies 📦
|
||||||
run: |
|
run: |
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
pip install -r requirements-dev.txt
|
pip install -r requirements-dev.txt
|
||||||
|
|
||||||
- name: Build Docker Images
|
- name: Build Docker Images 🛠
|
||||||
run: make build-all
|
run: make build-all
|
||||||
env:
|
env:
|
||||||
# Full logs for CI build
|
# Full logs for CI build
|
||||||
BUILDKIT_PROGRESS: plain
|
BUILDKIT_PROGRESS: plain
|
||||||
|
|
||||||
- name: Test Docker Images
|
- name: Run tests ✅
|
||||||
run: make test-all
|
run: make test-all
|
||||||
|
|
||||||
- name: Clone Wiki
|
- name: Checkout Wiki Repo 📃
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: ${{github.repository}}.wiki
|
repository: ${{github.repository}}.wiki
|
||||||
path: wiki/
|
path: wiki/
|
||||||
|
|
||||||
- name: Run Post-Build Hooks
|
- name: Create tags and manifest 🏷
|
||||||
run: make hook-all
|
run: make hook-all
|
||||||
|
26
.github/workflows/docker.yml
vendored
26
.github/workflows/docker.yml
vendored
@@ -57,7 +57,7 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Maximize build space
|
- name: Maximize build space 🛠
|
||||||
run: |
|
run: |
|
||||||
sudo rm -rf /usr/share/dotnet
|
sudo rm -rf /usr/share/dotnet
|
||||||
sudo rm -rf /usr/local/lib/android
|
sudo rm -rf /usr/local/lib/android
|
||||||
@@ -66,57 +66,57 @@ jobs:
|
|||||||
# Setup docker to build for multiple platforms, see:
|
# Setup docker to build for multiple platforms, see:
|
||||||
# https://github.com/docker/build-push-action/tree/master#usage
|
# https://github.com/docker/build-push-action/tree/master#usage
|
||||||
# https://github.com/docker/build-push-action/blob/master/docs/advanced/multi-platform.md
|
# https://github.com/docker/build-push-action/blob/master/docs/advanced/multi-platform.md
|
||||||
- name: Set up QEMU (for docker buildx)
|
- name: Set up QEMU (for docker buildx) 🐳
|
||||||
uses: docker/setup-qemu-action@27d0a4f181a40b142cce983c5393082c365d1480 # dependabot updates to latest release
|
uses: docker/setup-qemu-action@27d0a4f181a40b142cce983c5393082c365d1480 # dependabot updates to latest release
|
||||||
|
|
||||||
- name: Set up Docker Buildx (for multi-arch builds)
|
- name: Set up Docker Buildx (for multi-arch builds) 🐳
|
||||||
uses: docker/setup-buildx-action@94ab11c41e45d028884a99163086648e898eed25 # dependabot updates to latest release
|
uses: docker/setup-buildx-action@94ab11c41e45d028884a99163086648e898eed25 # dependabot updates to latest release
|
||||||
|
|
||||||
- name: Clone Main Repo
|
- name: Checkout Repo ⚡️
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set Up Python
|
- name: Set Up Python 🐍
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
|
|
||||||
- name: Install Dev Dependencies
|
- name: Install Dev Dependencies 📦
|
||||||
run: |
|
run: |
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
pip install -r requirements-dev.txt
|
pip install -r requirements-dev.txt
|
||||||
|
|
||||||
- name: Build Docker Images
|
- name: Build Docker Images 🛠
|
||||||
run: make build-all-multi
|
run: make build-all-multi
|
||||||
env:
|
env:
|
||||||
# Full logs for CI build
|
# Full logs for CI build
|
||||||
BUILDKIT_PROGRESS: plain
|
BUILDKIT_PROGRESS: plain
|
||||||
|
|
||||||
- name: Test Docker Images
|
- name: Run tests ✅
|
||||||
run: make test-all
|
run: make test-all
|
||||||
|
|
||||||
- name: Clone Wiki
|
- name: Checkout Wiki Repo 📃
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: ${{github.repository}}.wiki
|
repository: ${{github.repository}}.wiki
|
||||||
path: wiki/
|
path: wiki/
|
||||||
|
|
||||||
- name: Run Post-Build Hooks
|
- name: Create tags and manifest 🏷
|
||||||
run: make hook-all
|
run: make hook-all
|
||||||
|
|
||||||
- name: Push Wiki to GitHub
|
- name: Push Wiki to GitHub 📤
|
||||||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.event_name == 'schedule'
|
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.event_name == 'schedule'
|
||||||
uses: stefanzweifel/git-auto-commit-action@49620cd3ed21ee620a48530e81dba0d139c9cb80 # dependabot updates to latest release
|
uses: stefanzweifel/git-auto-commit-action@49620cd3ed21ee620a48530e81dba0d139c9cb80 # dependabot updates to latest release
|
||||||
with:
|
with:
|
||||||
commit_message: "Automated wiki publish for ${{github.sha}}"
|
commit_message: "Automated wiki publish for ${{github.sha}}"
|
||||||
repository: wiki/
|
repository: wiki/
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub 🔐
|
||||||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.event_name == 'schedule'
|
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.event_name == 'schedule'
|
||||||
uses: docker/login-action@dd4fa0671be5250ee6f50aedf4cb05514abda2c7 # dependabot updates to latest release
|
uses: docker/login-action@dd4fa0671be5250ee6f50aedf4cb05514abda2c7 # dependabot updates to latest release
|
||||||
with:
|
with:
|
||||||
username: ${{secrets.DOCKERHUB_USERNAME}}
|
username: ${{secrets.DOCKERHUB_USERNAME}}
|
||||||
password: ${{secrets.DOCKERHUB_TOKEN}}
|
password: ${{secrets.DOCKERHUB_TOKEN}}
|
||||||
|
|
||||||
- name: Push Images to DockerHub
|
- name: Push Images to Docker Hub 📤
|
||||||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.event_name == 'schedule'
|
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.event_name == 'schedule'
|
||||||
run: make push-all-multi
|
run: make push-all-multi
|
||||||
|
Reference in New Issue
Block a user