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

Add templates for Containerfiles style repos.

parent 00d39f62
No related branches found
No related tags found
No related merge requests found
Pipeline #2355 failed
---
.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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment