File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ services:
1313
1414jobs :
1515 include :
16- - stage : build
16+ - stage : Build Backend
1717 script :
1818 - openssl aes-256-cbc -K $encrypted_3c84dcdc6bbe_key -iv $encrypted_3c84dcdc6bbe_iv -in .env.enc -out .env -d
1919 # login to github registry
2222 - docker build -t docker.pkg.github.com/seluj78/pymatcha/pymatcha-api:latest . -f backend.Dockerfile
2323 # push image
2424 - docker push docker.pkg.github.com/seluj78/pymatcha/pymatcha-api:latest
25- - stage : test
25+ - stage : Build Frontend
26+ script :
27+ - openssl aes-256-cbc -K $encrypted_3c84dcdc6bbe_key -iv $encrypted_3c84dcdc6bbe_iv -in .env.enc -out .env -d
28+ # login to github registry
29+ - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin docker.pkg.github.com
30+ # build image
31+ - docker build -t docker.pkg.github.com/seluj78/pymatcha/pymatcha-frontend:latest . -f frontend.Dockerfile
32+ # push image
33+ - docker push docker.pkg.github.com/seluj78/pymatcha/pymatcha-frontend:latest
34+ - stage : Test API
2635 before_script :
2736 - node --version
2837 - npm --version
5362 # stop and remove docker to prevent them from block port at next iteration/test
5463 - docker stop $(docker ps -a -q)
5564 - docker rm $(docker ps -a -q)
56- - stage : lint
65+ - stage : Lint Backend
5766 before_script :
5867 - pip install -r backend/requirements.txt
5968 script :
You can’t perform that action at this time.
0 commit comments