Separate agent entrypoint and avoid documentation-only Docker rebuilds
PROMPT Docker CI and deployment / verify-and-deploy (push) Successful in 18m5s
PROMPT Docker CI and deployment / verify-and-deploy (push) Successful in 18m5s
This commit is contained in:
+14
-7
@@ -3,7 +3,17 @@ name: PROMPT Docker CI and deployment
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- '**'
|
||||
- '!docs/**'
|
||||
- '!**/*.md'
|
||||
- 'public/**'
|
||||
pull_request:
|
||||
paths:
|
||||
- '**'
|
||||
- '!docs/**'
|
||||
- '!**/*.md'
|
||||
- 'public/**'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -17,15 +27,12 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Prepare Docker Engine and Compose
|
||||
- name: Check preinstalled Docker Engine and Compose
|
||||
run: |
|
||||
set -eu
|
||||
if [ "$(id -u)" -eq 0 ]; then SUDO=""; else SUDO="sudo -n"; fi
|
||||
if ! command -v docker >/dev/null || ! docker compose version >/dev/null 2>&1; then
|
||||
$SUDO apt-get update -qq
|
||||
$SUDO apt-get install -y docker.io docker-compose-v2
|
||||
fi
|
||||
$SUDO systemctl enable --now docker
|
||||
command -v docker
|
||||
docker compose version
|
||||
docker info >/dev/null
|
||||
- name: Validate the Compose configuration
|
||||
run: docker compose --env-file .env.example config --quiet
|
||||
- name: Type check, unit tests, production build and smoke test inside Docker
|
||||
|
||||
Reference in New Issue
Block a user