cd to frontend in pipeline

This commit is contained in:
Lucian Popescu 2022-05-22 13:45:20 +03:00
parent 9c564604fb
commit 3a89296b83
1 changed files with 2 additions and 2 deletions

View File

@ -86,12 +86,12 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Build VueJS application
run: npm i && npm run build
run: cd frontend && npm i && npm run build
- name: Login to Docker Hub
run: docker login -u ${{ secrets.DOCKER_USER }}
-p ${{ secrets.DOCKER_PASS }}
- name: Build Docker image for frontend
run: docker build -t $REPO:frontend_latest -t $REPO:frontend_${GITHUB_SHA::8} .
run: cd frontend && docker build -t $REPO:frontend_latest -t $REPO:frontend_${GITHUB_SHA::8} .
- name: Publish Docker images
run: |
docker push $REPO:frontend_latest