diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1395b2ac11e473f9eead9577d7a6eccbb7825217..141430e1e60faa816dfa2d881af6bd6d492c3fb9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,12 +22,12 @@ docker-build: # All other branches are tagged with the escaped branch name (commit ref slug) script: - tag="$CI_COMMIT_SHA" - - docker build --pull -t "${CI_REGISTRY_IMAGE}:${tag}" . + - docker build --pull -t "${CI_REGISTRY_IMAGE}:${tag}" -f infiles_dps/dockerfile . - docker push "${CI_REGISTRY_IMAGE}:${tag}" # Run this job in a branch where a Dockerfile exists rules: - if: $CI_COMMIT_BRANCH exists: - - Dockerfile + - infiles_dps/dockerfile tags: - shell