reading file line by line, skipping long lines when parsing #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# - name: Install Deps | |
# run: sudo apt -y install libopencv-dev | |
- name: Build | |
run: mkdir build && cd build && ../cbuild | |
build-Docker: | |
runs-on: ubuntu-latest | |
name: Build Container | |
needs: [ build ] # for ignoring bad builds | |
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) | |
steps: | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build Container | |
uses: docker/build-push-action@v6 | |
with: | |
push: true | |
tags: | | |
sarsoo/knowledgecrawler:latest | |
sarsoo/knowledgecrawler:${{ github.ref_name }} | |
file: Dockerfile |