Merge branch 'master' of http://localhost:8380/gitlab/shillerben/my-homepage
This commit is contained in:
commit
6ff12bacf8
|
@ -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
|
# Change pip's cache directory to be inside the project directory since we can
|
||||||
# only cache local items.
|
# only cache local items.
|
||||||
|
@ -12,7 +12,13 @@ cache:
|
||||||
paths:
|
paths:
|
||||||
- .cache/pip
|
- .cache/pip
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- test
|
||||||
|
- build
|
||||||
|
- push
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
image: python:3.8
|
||||||
stage: test
|
stage: test
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update && apt-get install python3
|
- apt-get update && apt-get install python3
|
||||||
|
@ -22,12 +28,14 @@ test:
|
||||||
script:
|
script:
|
||||||
- pytest
|
- pytest
|
||||||
|
|
||||||
docker build:
|
build:
|
||||||
|
image: docker:19.03.12
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- docker build -t my_homepage .
|
- docker build -t my_homepage .
|
||||||
|
|
||||||
push:
|
push:
|
||||||
|
image: docker:19.03.12
|
||||||
stage: push
|
stage: push
|
||||||
script:
|
script:
|
||||||
- docker tag my_homepage $REPO/my_homepage:$TAG
|
- docker tag my_homepage $REPO/my_homepage:$TAG
|
||||||
|
|
Loading…
Reference in New Issue
Block a user