Add new tag to pipeline
This commit is contained in:
parent
929d7c240b
commit
d1d210acc0
@ -1,5 +1,3 @@
|
|||||||
environment:
|
|
||||||
IMAGE_TAG: ${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:7}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
build-frontend:
|
build-frontend:
|
||||||
@ -16,7 +14,7 @@ steps:
|
|||||||
context: frontend
|
context: frontend
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- ${IMAGE_TAG}
|
- ${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:7}
|
||||||
username:
|
username:
|
||||||
from_secret: DOCKER_USERNAME
|
from_secret: DOCKER_USERNAME
|
||||||
password:
|
password:
|
||||||
@ -36,7 +34,7 @@ steps:
|
|||||||
context: backend
|
context: backend
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- ${IMAGE_TAG}
|
- ${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:7}
|
||||||
username:
|
username:
|
||||||
from_secret: DOCKER_USERNAME
|
from_secret: DOCKER_USERNAME
|
||||||
password:
|
password:
|
||||||
|
|||||||
@ -24,7 +24,7 @@ DATA_FILE = "diagram.json"
|
|||||||
|
|
||||||
@app.get("/")
|
@app.get("/")
|
||||||
def root():
|
def root():
|
||||||
return {"message": "Check if the server is running"}
|
return {"message": "Check if the API is running"}
|
||||||
|
|
||||||
@app.get("/diagram/fetch")
|
@app.get("/diagram/fetch")
|
||||||
def fetch_diagram():
|
def fetch_diagram():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user