-
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.
* cleanup c# files * add docker image build ci * add paths to ci trigger * docker context * pass secret as build arg * env var to run command * app config fixes + ci updates * docker run formatting * env->env * stringify? * new env syntax * try env for task * try dockerfile args * standard bash syntax * workflow level env * env. syntax * try using just env * try quotes * remove extra quote
- Loading branch information
1 parent
fe3232d
commit 522963f
Showing
7 changed files
with
59 additions
and
48 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,33 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- "main" | ||
# paths: | ||
# - "MediaFileMetadataCheckerAPI/**" | ||
|
||
env: | ||
TEST_TAG: user/app:test | ||
LATEST_TAG: user/app:latest | ||
METADATA_API_CONFIG_CONNECTION_STRING: ${{ secrets.APP_CONFIG_CONNECTION_STRING }} | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Build and export to local images | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: "{{defaultContext}}:MediaFileMetadataCheckerAPI" | ||
load: true | ||
tags: ${{ env.TEST_TAG }} | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
- name: Test running image | ||
run: | | ||
docker run --rm ${{ env.TEST_TAG }} -e METADATA_API_CONFIG_CONNECTION_STRING="${{ env.METADATA_API_CONFIG_CONNECTION_STRING }}" -e METADATA_API_CONFIG_CACHE_EXPIRATION="1" --stop-timeout 30 |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
#!/usr/bin/env zsh | ||
# doc: https://github.com/dotnet/dotnet-docker/blob/main/samples/run-aspnetcore-https-development.md | ||
docker run --rm -it -p 8000:80 -p 8001:443 -e ASPNETCORE_URLS="https://+;http://+" -e ASPNETCORE_HTTPS_PORTS=8001 -e ASPNETCORE_Kestrel__Certificates__Default__Password=$pass -e ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx -e ASPNETCORE_ENVIRONMENT=Development -v ${HOME}/.aspnet/https:/https/ mediametadata | ||
docker run --rm -it -p 8000:80 -p 8001:443 / | ||
-e ASPNETCORE_URLS="https://+;http://+" / | ||
-e ASPNETCORE_HTTPS_PORTS=8001 / | ||
-e ASPNETCORE_Kestrel__Certificates__Default__Password=$pass / | ||
-e ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx / | ||
-e ASPNETCORE_ENVIRONMENT=Development / | ||
-e METADATA_API_CONFIG_CACHE_EXPIRATION=1 / | ||
-e METADATA_API_CONFIG_CONNECTION_STRING=$connectionString / | ||
-v ${HOME}/.aspnet/https:/https/ mediametadata |