Skip to content

Commit

Permalink
change github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienBenoit7 committed Aug 29, 2024
1 parent f1f2066 commit d95ccb9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/frontend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
uses: actions/checkout@v2
- name: Goto frontend and run tests
run: cd frontend && npm i && npm test
test-e2e:
test-e2e:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: run e2e tests
run: docker compose -f docker-compose.e2e.yml up --build --exit-code-from e2e
run: docker compose -f docker-compose.e2e.yml up --build --exit-code-from e2e
docker-build-and-push-to-dockerhub:
needs: [test-client, test-e2e]
if: github.ref == 'refs/heads/dev'
Expand All @@ -37,12 +37,11 @@ jobs:
push: true
context: "{{defaultContext}}:frontend"
file: Dockerfile.prod
tags: ${{ secrets.DOCKERHUB_USERNAME }}/wildrent-frontend:latest
tags: ${{ secrets.DOCKERHUB_USERNAME }}/wildrent-frontend:latest, ${{ secrets.DOCKERHUB_USERNAME }}/wildrent-frontend:${{ github.sha }}
- name: Build and push backend
uses: docker/build-push-action@v4
with:
push: true
context: "{{defaultContext}}:backend"
file: Dockerfile.prod
tags: ${{ secrets.DOCKERHUB_USERNAME }}/wildrent-backend:latest

tags: ${{ secrets.DOCKERHUB_USERNAME }}/wildrent-backend:latest, ${{ secrets.DOCKERHUB_USERNAME }}/wildrent-backend:${{ github.sha }}

0 comments on commit d95ccb9

Please sign in to comment.