File tree Expand file tree Collapse file tree 2 files changed +45
-5
lines changed Expand file tree Collapse file tree 2 files changed +45
-5
lines changed Original file line number Diff line number Diff line change 4949 env :
5050 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5151 MISE_TRUSTED_CONFIG_PATHS : /
52+ SKIP_PODMAN : 1
53+ SKIP_DOCKER : 1
5254 continue-on-error : false
5355 outputs :
5456 commit_context : ${{ steps.extract_context.outputs.context }}
@@ -103,6 +105,11 @@ jobs:
103105 run : |
104106 task build
105107
108+ - name : task package
109+ timeout-minutes : 3
110+ run : |
111+ task package
112+
106113 - name : Run context-specific command
107114 if : >-
108115 steps.extract_context.outputs.context != '' &&
@@ -120,10 +127,13 @@ jobs:
120127 run : |
121128 task docs
122129
123- - name : task package
124- timeout-minutes : 2
130+ - name : Cancel workflow on preflight failure
131+ if : failure()
132+ env :
133+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
125134 run : |
126- task package
135+ echo "Preflight failed - cancelling workflow"
136+ gh api repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/cancel -X POST
127137
128138 build :
129139 name : ${{ matrix.name }}
@@ -472,6 +482,7 @@ jobs:
472482 check : # This job does nothing and is only used for the branch protection
473483 needs :
474484 - build
485+ - preflight
475486
476487 permissions :
477488 checks : read # codecov
Original file line number Diff line number Diff line change @@ -15,8 +15,37 @@ WORKDIR /context
1515# install ansible-dev-tools specific packages and dependencies while avoiding
1616# adding multiple layers to the image.
1717# cspell:disable-next-line
18- RUN apt-get update && apt-get install -q -y golang-github-go-enry-go-oniguruma-dev curl file git git-lfs sudo
19- RUN --mount=type=bind,target=. ls /context
18+ RUN apt-get update && apt-get install -q -y \
19+ curl \
20+ file \
21+ git \
22+ git-lfs \
23+ golang-github-go-enry-go-oniguruma-dev \
24+ libasound2 \
25+ libatk-bridge2.0-0 \
26+ libatk1.0-0 \
27+ libatspi2.0-0 \
28+ libcairo2 \
29+ libcups2 \
30+ libdbus-1-3 \
31+ libdrm2 \
32+ libgbm1 \
33+ libgdk-pixbuf-2.0-0 \
34+ libgtk-3-0 \
35+ libnspr4 \
36+ libnss3 \
37+ libpango-1.0-0 \
38+ libpangocairo-1.0-0 \
39+ libxcb1 \
40+ libxcomposite1 \
41+ libxdamage1 \
42+ libxfixes3 \
43+ libxkbcommon0 \
44+ libxrandr2 \
45+ libxshmfence1 \
46+ lsof \
47+ sudo \
48+ xvfb
2049RUN --mount=type=bind,target=. \
2150--mount=type=cache,target=/root/.local/share/mise,sharing=locked \
2251--mount=type=cache,target=/root/.cache/mise,sharing=locked \
You can’t perform that action at this time.
0 commit comments