Compare commits

...

9 Commits

Author SHA1 Message Date
c1eaa8a2d7
Update appsettings.json 2025-02-28 01:26:00 -05:00
f1cc2bedec Update build-image.yml 2024-06-15 03:51:54 -04:00
a3490fe82a chore: setup codespace 2024-06-15 03:49:39 -04:00
1bcec1f166 Update build-image.yml 2024-06-15 03:45:29 -04:00
eaa76894c1 Update build-image.yml 2024-06-15 03:42:34 -04:00
4fba59de40 Update build-image.yml 2024-06-15 03:42:24 -04:00
a209054021 Update build-image.yml 2024-06-15 03:40:27 -04:00
9bf6cae16f Update build-image.yml 2024-06-15 03:39:01 -04:00
b1a2a79e27 Update build-image.yml 2024-06-15 03:35:09 -04:00
3 changed files with 59 additions and 14 deletions

View File

@ -0,0 +1,44 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet
{
"name": "C# (.NET)",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/dotnet:0-6.0",
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
"moby": true,
"installDockerBuildx": true,
"version": "latest",
"dockerDashComposeVersion": "v2"
},
"ghcr.io/devcontainers/features/dotnet:1": {
"installUsingApt": true,
"version": "latest"
},
"ghcr.io/wxw-matt/devcontainer-features/command_runner:0": {}
},
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [5000, 5001],
// "portsAttributes": {
// "5001": {
// "protocol": "https"
// }
// }
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "dotnet restore",
// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": ["ms-dotnettools.csdevkit"]
}
}
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}

View File

@ -243,26 +243,27 @@ jobs:
needs: gitversion
strategy:
matrix:
platform: [amd64, arm64]
# platform: [amd64, arm64]
platform: [ amd64 ]
steps:
- name: 'Cleanup build folder'
run: |
rm ./* -r || true
rm ./.??* -r || true
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: login into registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login https://ghcr.io -u $ --password-stdin
- name: Build image
env:
dockerfile: /src/comissions.app.api/Dockerfile
dockerfile: ./src/comissions.app.api/Dockerfile
docker_image_name: ghcr.io/d4m13n-d3v/comissions-api-${{ matrix.platform }}
run: |
docker build --platform linux/${{ matrix.platform }} -t ${{ env.docker_image_name }}:${{ needs.gitversion.outputs.semantic_version }} -f ${{ env.dockerfile }}
docker build --platform linux/${{ matrix.platform }} -t ${{ env.docker_image_name }}:${{ needs.gitversion.outputs.semantic_version }} -f ${{ env.dockerfile }} --force-rm .
docker tag ${{ env.docker_image_name }}:${{ needs.gitversion.outputs.semantic_version }} ${{ env.docker_image_name }}:latest
docker push --all-tags ${{ env.docker_image_name }}
- name: Tag branch
run: |
git tag ${{ needs.gitversion.outputs.semantic_version }}
git push origin ${{ needs.gitversion.outputs.semantic_version }}
docker push --all-tags ${{ env.docker_image_name }}

View File

@ -3,7 +3,7 @@
"BaseUrl": "http://localhost:3000"
},
"Novu": {
"ApiKey": "287ad99d1cbeba7f96a7d2637b022e6f"
"ApiKey": ""
},
"Database": {
"Database": "comissionsapp",
@ -13,14 +13,14 @@
"password": "postgres"
},
"Stripe": {
"WebHookSecret": "whsec_WTxw2seQHaJjSbLiRr1q8fs1wh8vGdGn",
"ApiKey": "sk_test_51OdJ1SLooS0IZqYkx2IdNoLcscm6BisgaUyYVIc5jM1RMmarww2e9hLLQS3Atn6TQi00p9YQkCLGQPhAI2gf9ZSY00HmbQYCvP"
"WebHookSecret": "",
"ApiKey": ""
},
"Auth0": {
"Domain": "https://dev-12mb5yq82dow1twh.us.auth0.com/",
"Audience": "https://api.artplatform.com",
"ClientId": "U39Jg6oyFoNihzjZ24SX2FxiBx2lqvsC",
"ClientSecret": "UBH4HTsvkoWHImQwI4abyh46s6qpEnD3hfrODEYBTX7p_5v0bYogz-b_6wJtOkDg"
"ClientId": "",
"ClientSecret": ""
},
"Logging": {
"LogLevel": {