Skip to content

Commit 1984573

Browse files
git commit -m 'sprint 3 version'
1 parent 2531b87 commit 1984573

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

.github/workflows/autodeploy.yml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -20,37 +20,6 @@ jobs:
2020
run: cd course-matrix/frontend && npm install && npm run test
2121
- name: Run backend tests
2222
run: cd course-matrix/backend && npm install && npm run test
23-
24-
# Step 2: Set up Docker Buildx (optional for multi-platform support)
25-
- name: Set up Docker Buildx
26-
uses: docker/setup-buildx-action@v2
27-
28-
- name: Log in to Docker Hub
29-
uses: docker/login-action@v3
30-
with:
31-
username: ${{ secrets.DOCKERHUB_USERNAME }}
32-
password: ${{ secrets.DOCKERHUB_TOKEN }}
33-
34-
# Build and push frontend Docker image
35-
- name: Build Docker Image
36-
run: |
37-
cd course-matrix
38-
# Build the frontend image
39-
docker compose -f docker-compose.yml build frontend
40-
docker tag frontend:latest course-matrix/frontend:latest # Tag frontend with the Docker Hub repository
41-
42-
# Build the backend image
43-
docker compose -f docker-compose.yml build backend
44-
docker tag backend:latest course-matrix/backend:latest # Tag backend with the Docker Hub repository
45-
46-
# Step 5: Push Docker images to Docker Hub
47-
- name: Push Docker images to Docker Hub
48-
run: |
49-
# Push the frontend image
50-
docker push course-matrix/frontend:latest
51-
52-
# Push the backend image
53-
docker push course-matrix/backend:latest
5423

5524
deploy:
5625
needs: test

0 commit comments

Comments
 (0)