Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
time: "06:00"
# Group all actions updates together in the same PR
groups:
actions:
patterns:
- "*"
labels:
- dependabot
72 changes: 69 additions & 3 deletions .github/workflows/build-ddev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ on:
push:
tags:
- ddev-v*
paths:
- ddev/**
branches:
- master
pull_request:
paths:
- .github/workflows/build-ddev.yml
- ddev/**
branches:
- master
schedule:
- cron: 0 0 * * *

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
Expand All @@ -26,16 +32,43 @@ env:
PYOXIDIZER_VERSION: "0.24.0"

jobs:
define-tags:
name: Define Base Tags
runs-on: ubuntu-latest
defaults:
run:
# No need to checkout the code for this job yet
working-directory: .
outputs:
base_tags: ${{ steps.tags.outputs.base_tags }}
steps:
- id: tags
run: |
context="master"
if [[ "${{ github.event_name }}" == "schedule" ]]; then
context="schedule"
elif [[ "${{ github.event_name }}" == "pull_request" ]]; then
context="pr"
fi
echo "base_tags=team:agent-integrations,service:ddev,context:$context" >> $GITHUB_OUTPUT

python-artifacts:
name: Build wheel and source distribution
runs-on: ubuntu-latest
needs: define-tags

steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0

- name: Tag Job
uses: ./.github/actions/tag-job
with:
tags: '${{ needs.define-tags.outputs.base_tags }},step:build-artifacts'
dd_api_key: ${{ secrets.DD_API_KEY }}

- name: Install build frontend
run: python -m pip install --upgrade build

Expand All @@ -52,6 +85,7 @@ jobs:
binaries:
name: ${{ matrix.job.target }} (${{ matrix.job.os }})
needs:
- define-tags
- python-artifacts
runs-on: ${{ matrix.job.os }}
strategy:
Expand Down Expand Up @@ -98,6 +132,12 @@ jobs:
with:
fetch-depth: 0

- name: Tag Job
uses: ./.github/actions/tag-job
with:
tags: '${{ needs.define-tags.outputs.base_tags }},step:build-binary,os:${{ matrix.job.os }},target:${{ matrix.job.target }}'
dd_api_key: ${{ secrets.DD_API_KEY }}

- name: Fetch PyApp
run: >-
mkdir $PYAPP_REPO && curl -L
Expand All @@ -117,7 +157,7 @@ jobs:
run: pip install -e . --no-deps

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@b56f20b9f22943bc548a7945b40601028db81a31 # 1.86.0 Latest rust stable version as of 2025-05-08 (https://forge.rust-lang.org/)
uses: dtolnay/rust-toolchain@772c4490b37ea1c65caf6a53089a38ea1510cf4a # 1.93.0 Latest rust stable version as of 2026-01-27 (https://forge.rust-lang.org/)
with:
targets: ${{ matrix.job.target }}

Expand Down Expand Up @@ -252,7 +292,9 @@ jobs:
windows-packaging:
name: Build Windows installers
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
needs: binaries
needs:
- define-tags
- binaries
runs-on: windows-2022

env:
Expand All @@ -262,6 +304,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Tag Job
uses: ./.github/actions/tag-job
with:
tags: '${{ needs.define-tags.outputs.base_tags }},step:package-windows,os:windows'
dd_api_key: ${{ secrets.DD_API_KEY }}

- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
Expand Down Expand Up @@ -358,7 +406,9 @@ jobs:
macos-packaging:
name: Build macOS installer and sign/notarize artifacts
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
needs: binaries
needs:
- define-tags
- binaries
runs-on: macos-14-large

env:
Expand All @@ -368,6 +418,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Tag Job
uses: ./.github/actions/tag-job
with:
tags: '${{ needs.define-tags.outputs.base_tags }},step:package-macos,os:macos'
dd_api_key: ${{ secrets.DD_API_KEY }}

- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
Expand Down Expand Up @@ -569,6 +625,7 @@ jobs:
name: Publish release
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
needs:
- define-tags
- python-artifacts
- binaries
- windows-packaging
Expand All @@ -582,6 +639,15 @@ jobs:
environment: pypi-ddev

steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Tag Job
uses: ./.github/actions/tag-job
with:
tags: '${{ needs.define-tags.outputs.base_tags }},step:publish'
dd_api_key: ${{ secrets.DD_API_KEY }}

- name: Download Python artifacts
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
Expand Down
Loading