Loading templates/containerfiles.yml 0 → 100644 +27 −0 Original line number Diff line number Diff line --- .container-build: stage: build variables: DOCKER_BUILDKIT: "1" tags: &tags [ns4.shore.co.il] script: - docker build --pull --no-cache --iidfile iid "$CONTEXT" after_script: - echo "HASH=$(cat iid)" > dot.env artifacts: reports: dotenv: dot.env rules: &rules - if: $CI_PIPELINE_SOURCE == "schedule" - if: $CI_PIPELINE_SOURCE == "push" changes: - $CONTEXT/* - $CONTEXT/**/* .container-push: stage: deploy tags: *tags script: - docker tag "$HASH" "registry.shore.co.il/$IMAGE:${TAG:-latest}" - docker push "registry.shore.co.il/$IMAGE:${TAG:-latest}" rules: *rules Loading
templates/containerfiles.yml 0 → 100644 +27 −0 Original line number Diff line number Diff line --- .container-build: stage: build variables: DOCKER_BUILDKIT: "1" tags: &tags [ns4.shore.co.il] script: - docker build --pull --no-cache --iidfile iid "$CONTEXT" after_script: - echo "HASH=$(cat iid)" > dot.env artifacts: reports: dotenv: dot.env rules: &rules - if: $CI_PIPELINE_SOURCE == "schedule" - if: $CI_PIPELINE_SOURCE == "push" changes: - $CONTEXT/* - $CONTEXT/**/* .container-push: stage: deploy tags: *tags script: - docker tag "$HASH" "registry.shore.co.il/$IMAGE:${TAG:-latest}" - docker push "registry.shore.co.il/$IMAGE:${TAG:-latest}" rules: *rules