Skip to content
Snippets Groups Projects
Commit 3c967e50 authored by nimrod's avatar nimrod
Browse files

Fix GitLab CI pipeline.

Without the CONTEXT variable, the rules for push jobs was broken and
always triggered. This also pulled in the dependency jobs. I don't see a
way to avoid defining the CONTEXT variable in both build and push jobs.
parent e8533d91
Branches
No related tags found
No related merge requests found
...@@ -16,7 +16,6 @@ stages: ...@@ -16,7 +16,6 @@ stages:
# hard-coded to latest. # hard-coded to latest.
variables: variables:
TAG: latest TAG: latest
CONTEXT: "$IMAGE"
# Job templates: # Job templates:
...@@ -72,6 +71,7 @@ build-httpd: ...@@ -72,6 +71,7 @@ build-httpd:
push-httpd: push-httpd:
extends: .push extends: .push
variables: variables:
CONTEXT: httpd/buster
IMAGE: httpd IMAGE: httpd
needs: needs:
- job: build-httpd - job: build-httpd
...@@ -82,6 +82,7 @@ push-httpd: ...@@ -82,6 +82,7 @@ push-httpd:
push-httpd-buster: push-httpd-buster:
extends: .push extends: .push
variables: variables:
CONTEXT: httpd/buster
IMAGE: httpd IMAGE: httpd
TAG: buster TAG: buster
needs: needs:
...@@ -98,6 +99,7 @@ build-httpd-bullseye: ...@@ -98,6 +99,7 @@ build-httpd-bullseye:
push-httpd-bullseye: push-httpd-bullseye:
extends: .push extends: .push
variables: variables:
CONTEXT: httpd/bullseye
IMAGE: httpd IMAGE: httpd
TAG: bullseye TAG: bullseye
needs: needs:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment