Modernize build workflows

This commit is contained in:
Ayaz Salikhov
2022-05-02 01:34:54 +03:00
parent ac799821f2
commit 17762c3e80
2 changed files with 20 additions and 20 deletions

View File

@@ -57,33 +57,33 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone Main Repo
- name: Checkout Repo ⚡️
uses: actions/checkout@v3
- name: Set Up Python
- name: Set Up Python 🐍
uses: actions/setup-python@v3
with:
python-version: 3.x
- name: Install Dev Dependencies
- name: Install Dev Dependencies 📦
run: |
pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Build Docker Images
- name: Build Docker Images 🛠
run: make build-all
env:
# Full logs for CI build
BUILDKIT_PROGRESS: plain
- name: Test Docker Images
- name: Run tests ✅
run: make test-all
- name: Clone Wiki
- name: Checkout Wiki Repo 📃
uses: actions/checkout@v3
with:
repository: ${{github.repository}}.wiki
path: wiki/
- name: Run Post-Build Hooks
- name: Create tags and manifest 🏷
run: make hook-all

View File

@@ -57,7 +57,7 @@ jobs:
contents: write
steps:
- name: Maximize build space
- name: Maximize build space 🛠
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
@@ -66,57 +66,57 @@ jobs:
# 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/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
- 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
- name: Clone Main Repo
- name: Checkout Repo ⚡️
uses: actions/checkout@v3
- name: Set Up Python
- name: Set Up Python 🐍
uses: actions/setup-python@v3
with:
python-version: 3.x
- name: Install Dev Dependencies
- name: Install Dev Dependencies 📦
run: |
pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Build Docker Images
- name: Build Docker Images 🛠
run: make build-all-multi
env:
# Full logs for CI build
BUILDKIT_PROGRESS: plain
- name: Test Docker Images
- name: Run tests ✅
run: make test-all
- name: Clone Wiki
- name: Checkout Wiki Repo 📃
uses: actions/checkout@v3
with:
repository: ${{github.repository}}.wiki
path: wiki/
- name: Run Post-Build Hooks
- name: Create tags and manifest 🏷
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'
uses: stefanzweifel/git-auto-commit-action@49620cd3ed21ee620a48530e81dba0d139c9cb80 # dependabot updates to latest release
with:
commit_message: "Automated wiki publish for ${{github.sha}}"
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'
uses: docker/login-action@dd4fa0671be5250ee6f50aedf4cb05514abda2c7 # dependabot updates to latest release
with:
username: ${{secrets.DOCKERHUB_USERNAME}}
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'
run: make push-all-multi