-
Notifications
You must be signed in to change notification settings - Fork 70
78 lines (68 loc) · 2.32 KB
/
Copy pathdevel-image.yml
File metadata and controls
78 lines (68 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Build community-ansible-dev-tools with ADT ecosystem packages from each
# dependency repo's default-branch tip (see final/from-main-requirements.txt).
# Publishes :YYYYMMDD (UTC) and floating :devel. Does not retag :main or :latest.
#
# Nightly schedule enabled after a successful manual run:
# https://github.com/ansible/ansible-dev-tools/actions/runs/29510692708
# (:devel / :20260716 validated with tip .dev* ADT packages).
name: devel-image
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
concurrency:
# Do not cancel in-flight runs: publish tags :YYYYMMDD then :devel sequentially;
# cancel mid-loop can leave those tags pointing at different builds.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
permissions:
contents: read
packages: write
jobs:
build:
name: build-${{ matrix.arch }}
# Only build/push tmp images from main; non-main dispatch must not write to GHCR.
if: github.ref == 'refs/heads/main'
strategy:
fail-fast: false
matrix:
include:
- arch: amd64
runner: devtools-multiarch-builder
- arch: arm64
runner: ubuntu-24.04-arm
runs-on: ${{ matrix.runner }}
steps:
- name: Check out repository
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Switch to using Python 3.13 by default
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install tox
run: python3 -m pip install --user "tox>=4.46.0" "tox-uv>=1.32.0"
- name: Run test setup
run: ./tools/test-setup.sh
- name: Build from-main image
env:
ADT_IMAGE_FROM_MAIN: "1"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python3 -m tox -e ee-devel
publish:
name: publish-devel
needs: build
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-24.04
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Publish :YYYYMMDD and :devel manifests
env:
ADT_IMAGE_FROM_MAIN: "1"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
DATE_TAG="$(date -u +%Y%m%d)"
echo "Publishing ghcr.io/ansible/community-ansible-dev-tools:${DATE_TAG} and :devel"
./tools/ee.sh --publish "${DATE_TAG}" "devel"