Skip to content

Commit 096a3e2

Browse files
committed
Modified stage names and added frontend building
1 parent 0b2ac66 commit 096a3e2

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.travis.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ services:
1313

1414
jobs:
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
@@ -22,7 +22,16 @@ jobs:
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
@@ -53,7 +62,7 @@ jobs:
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:

0 commit comments

Comments
 (0)