From 430cbb0ce3a7d6806a69bad295ee9eecc66192ec Mon Sep 17 00:00:00 2001 From: sylvain-morin Date: Fri, 3 Nov 2023 16:45:48 +0100 Subject: [PATCH] Add Github CI --- .github/workflows/CI.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/CI.yml 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