From 6d9b31e354608e84da62ea9beecde890fb37340f Mon Sep 17 00:00:00 2001 From: Ben Shiller Date: Thu, 23 Dec 2021 03:11:48 +0000 Subject: [PATCH 1/2] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dcee208..e70c7e7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,6 +12,11 @@ cache: paths: - .cache/pip +stages: +- test +- build +- push + test: stage: test before_script: @@ -22,7 +27,7 @@ test: script: - pytest -docker build: +build: stage: build script: - docker build -t my_homepage . From c6234c969bf9a0487b576bf5261eee9338ab3522 Mon Sep 17 00:00:00 2001 From: Ben Shiller Date: Thu, 23 Dec 2021 04:13:26 +0000 Subject: [PATCH 2/2] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e70c7e7..b97be9e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: docker:19.03.12 +#image: docker:19.03.12 # Change pip's cache directory to be inside the project directory since we can # only cache local items. @@ -18,6 +18,7 @@ stages: - push test: + image: python:3.8 stage: test before_script: - apt-get update && apt-get install python3 @@ -28,11 +29,13 @@ test: - pytest build: + image: docker:19.03.12 stage: build script: - docker build -t my_homepage . push: + image: docker:19.03.12 stage: push script: - docker tag my_homepage $REPO/my_homepage:$TAG