Skip to content

Commit

Permalink
Merge pull request #7 from aglevillayer/test-ci
Browse files Browse the repository at this point in the history
init workflows
  • Loading branch information
aglevillayer authored Nov 26, 2024
2 parents 5ed7033 + 6e071b9 commit 68498f5
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/jest-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: jest-ci
name: jest-and-docker-ci

on: push

Expand All @@ -10,3 +10,23 @@ jobs:
uses: actions/checkout@v2
- name: Goto client and run tests
run: cd client && npm i && npm test
docker:
needs: test-front
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
context: "{{defaultContext}}:client"
tags: aglevillayer/quete1902:latest

0 comments on commit 68498f5

Please sign in to comment.