Loading .gitlab-ci.yml +8 −5 Original line number Diff line number Diff line Loading @@ -2,6 +2,8 @@ include: - project: shore/ci-templates file: templates/pre-commit.yml - project: shore/ci-templates file: templates/notify.yml stages: - test Loading @@ -14,6 +16,7 @@ stages: # hard-coded to latest. variables: TAG: latest CONTEXT: "$IMAGE" # Job templates: Loading @@ -23,7 +26,7 @@ variables: DOCKER_BUILDKIT: "1" tags: &tags [ns4.shore.co.il] script: - docker build --pull --no-cache --iidfile iid "$IMAGE" - docker build --pull --no-cache --iidfile iid "$CONTEXT" after_script: - echo "HASH=$(cat iid)" > dot.env artifacts: Loading @@ -33,8 +36,8 @@ variables: - if: $CI_PIPELINE_SOURCE == "schedule" - if: $CI_PIPELINE_SOURCE == "push" changes: - $IMAGE/* - $IMAGE/**/* - $CONTEXT/* - $CONTEXT/**/* .push: stage: deploy Loading @@ -49,7 +52,7 @@ variables: build-cgit: extends: .build variables: IMAGE: cgit CONTEXT: cgit push-cgit: extends: .push Loading @@ -64,7 +67,7 @@ push-cgit: build-httpd: extends: .build variables: IMAGE: httpd CONTEXT: httpd push-httpd: extends: .push Loading Loading
.gitlab-ci.yml +8 −5 Original line number Diff line number Diff line Loading @@ -2,6 +2,8 @@ include: - project: shore/ci-templates file: templates/pre-commit.yml - project: shore/ci-templates file: templates/notify.yml stages: - test Loading @@ -14,6 +16,7 @@ stages: # hard-coded to latest. variables: TAG: latest CONTEXT: "$IMAGE" # Job templates: Loading @@ -23,7 +26,7 @@ variables: DOCKER_BUILDKIT: "1" tags: &tags [ns4.shore.co.il] script: - docker build --pull --no-cache --iidfile iid "$IMAGE" - docker build --pull --no-cache --iidfile iid "$CONTEXT" after_script: - echo "HASH=$(cat iid)" > dot.env artifacts: Loading @@ -33,8 +36,8 @@ variables: - if: $CI_PIPELINE_SOURCE == "schedule" - if: $CI_PIPELINE_SOURCE == "push" changes: - $IMAGE/* - $IMAGE/**/* - $CONTEXT/* - $CONTEXT/**/* .push: stage: deploy Loading @@ -49,7 +52,7 @@ variables: build-cgit: extends: .build variables: IMAGE: cgit CONTEXT: cgit push-cgit: extends: .push Loading @@ -64,7 +67,7 @@ push-cgit: build-httpd: extends: .build variables: IMAGE: httpd CONTEXT: httpd push-httpd: extends: .push Loading