-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated Container Builds & bump to sdk:6.0 (#28)
* ci: Build & Push on commit to master Signed-off-by: Joost Buskermolen <joost@buskervezel.nl> * feat: multi-stage Dockerfile Signed-off-by: Joost Buskermolen <joost@buskervezel.nl> * fix: Set TargetFramework dotnet/sdk#251 Signed-off-by: Joost Buskermolen <joost@buskervezel.nl> * chore: Improve Dockerfile Signed-off-by: Joost Buskermolen <joost@buskervezel.nl> * fix: Include tessdata in runtime Signed-off-by: Joost Buskermolen <joost@buskervezel.nl> * fix: Add missing libtesseract4 Signed-off-by: Joost Buskermolen <joost@buskervezel.nl> * fix: Missing -y Signed-off-by: Joost Buskermolen <joost@buskervezel.nl> Co-authored-by: Tentacule <git@tentacule.net>
- Loading branch information
Showing
3 changed files
with
64 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: set lower case owner name | ||
run: | | ||
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV} | ||
env: | ||
OWNER: '${{ github.repository_owner }}' | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- | ||
name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- | ||
name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ env.OWNER_LC }} | ||
password: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
- | ||
name: Build and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: Dockerfile | ||
platforms: linux/amd64 | ||
push: true | ||
tags: | | ||
${{ secrets.DOCKERHUB_USERNAME }}/pgstosrt:latest | ||
${{ secrets.DOCKERHUB_USERNAME }}/pgstosrt:${{ github.ref_name }} | ||
ghcr.io/${{ env.OWNER_LC }}/pgstosrt:latest | ||
ghcr.io/${{ env.OWNER_LC }}/pgstosrt:${{ github.ref_name }} |
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 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