diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..34a8631 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,27 @@ +name: inatVisionAPI CI + +on: [push, pull_request] + +jobs: + build-push-docker-image: + name: Build and Push Docker Image + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_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@v5 + with: + context: . + file: ./Dockerfile + push: true + tags: ${{ secrets.DOCKERHUB_USERNAME }}/vision:latest