-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added build and test github action (#11)
* Added build and test github action
- Loading branch information
1 parent
3d14a72
commit 8c742e6
Showing
2 changed files
with
38 additions
and
0 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,35 @@ | ||
name: Build and test | ||
on: | ||
push: | ||
branches: | ||
- 'develop' | ||
pull_request: | ||
branches: [ develop ] | ||
|
||
env: | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Build API | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./ | ||
file: ./TaktTusur.Media.Api/Dockerfile | ||
push: false | ||
platforms: "linux/amd64" | ||
- name: Build Background Crawler | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./ | ||
file: ./TaktTusur.Media.BackgroundCrawler/Dockerfile | ||
push: false | ||
platforms: "linux/amd64" |
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