added Dockerfile #11
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
# This workflow will build a golang project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
name: Go | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
permissions: write-all | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Package | |
# You may pin to the exact commit or the version. | |
# uses: ConorMacBride/install-package@3e7ad059e07782ee54fa35f827df52aae0626f30 | |
uses: ConorMacBride/[email protected] | |
with: | |
# Packages to install with apt on Linux | |
apt: tesseract-ocr libtesseract-dev | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- name: Build | |
run: go build -v ./... | |
- name: Upload a Build Artifact | |
uses: actions/[email protected] | |
with: | |
path: ocrmyimage | |
# The desired behavior if no files are found using the provided path. | |
- name: 'Get Previous tag' | |
id: previous_tag | |
uses: "WyriHaximus/github-action-get-previous-tag@v1" | |
with: | |
fallback: v1.0 | |
- name: Release with Notes | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{steps.previous_tag.outputs.tag}} | |
files: ocrmyimage | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |