Skip to content

Commit

Permalink
CI for FE
Browse files Browse the repository at this point in the history
  • Loading branch information
AidenLYT committed Sep 19, 2024
1 parent 77c883a commit 8806ae0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,21 @@ jobs:
run: npm run build --if-present
- name: Run tests
run: npm test -- --watch=false --browsers=ChromeHeadless
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{vars.DOCKER_USERNAME}}
password: ${{secrets.DOCKERHUB_TOKEN}}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
context: ./peer-prep-fe
file: ./peer-prep-fe/Dockerfile
platforms: linux/arm64, linux/amd64
push: true
tags: ${{vars.DOCKER_USERNAME}}/${{github.event.repository.name}}:latest

build-backend:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8806ae0

Please sign in to comment.