Commit 596cc12e authored by Aryan Noshirvnai's avatar Aryan Noshirvnai

Fix CI: drop needs: (unsupported extended form on this GitLab instance)

Stage ordering alone (deploy after test) already guarantees deploy_prod
waits for test and inherits its dist/ artifact - needs: was redundant
and its {job, artifacts} object form isn't recognized here, which failed
the pipeline before a single job could even start. Verified against this
instance's own /api/v4/ci/lint before pushing this time.
Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
parent c4f865d1
Pipeline #1168 failed with stages
in 8 minutes and 45 seconds
...@@ -31,11 +31,13 @@ test: ...@@ -31,11 +31,13 @@ test:
only: only:
- main - main
# Only ever runs on main, and fires automatically once the test job above passes (needs: # Only ever runs on main, and fires automatically once the test job above passes - being in a
# artifacts: true pulls test's dist/ output rather than rebuilding it). Ships that dist/ onto # later stage than test is enough on its own (no `needs:` required, which this GitLab instance's
# prod over SSH and runs deploy.sh there - deploy.sh handles everything else: nginx # CI linter rejects in its extended object form anyway); dependencies default to every job from
# install/config (as a same-origin reverse proxy to the backend, plus optional TLS via certbot), # prior stages, so test's dist/ artifact is already there. Ships that dist/ onto prod over SSH
# an atomic release swap, and a reload. # and runs deploy.sh there - deploy.sh handles everything else: nginx install/config (as a
# same-origin reverse proxy to the backend, plus optional TLS via certbot), an atomic release
# swap, and a reload.
# #
# Server access comes entirely from GitLab CI/CD variables (Settings > CI/CD > Variables) - # Server access comes entirely from GitLab CI/CD variables (Settings > CI/CD > Variables) -
# PROD_SERVER_IP, PROD_SSH_PRIVATE_KEY, and optionally PROD_SSH_PORT - deliberately kept out of # PROD_SERVER_IP, PROD_SSH_PRIVATE_KEY, and optionally PROD_SSH_PORT - deliberately kept out of
...@@ -45,9 +47,6 @@ deploy_prod: ...@@ -45,9 +47,6 @@ deploy_prod:
image: python:3.10-slim image: python:3.10-slim
variables: variables:
STAX_WEBAPP_DEPLOY_DIR: "/var/www/stax_webapp" STAX_WEBAPP_DEPLOY_DIR: "/var/www/stax_webapp"
needs:
- job: test
artifacts: true
before_script: before_script:
- apt-get update -qq && apt-get install -y -qq --no-install-recommends openssh-client rsync - apt-get update -qq && apt-get install -y -qq --no-install-recommends openssh-client rsync
# This runner's job containers have a read-only root filesystem - /tmp is the one path # This runner's job containers have a read-only root filesystem - /tmp is the one path
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment