This commit is contained in:
@@ -7,13 +7,15 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: [docker]
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build Docker image
|
||||
run: docker build -t docker-registry.automatic-parking.dev/automatic-parking:poc Source/ProofOfConcept
|
||||
run: |
|
||||
docker build -t docker-registry.automatic-parking.dev/automatic-parking:poc Source/ProofOfConcept
|
||||
|
||||
- name: Push to local registry
|
||||
run: docker push docker-registry.automatic-parking.dev/automatic-parking:poc
|
||||
@@ -24,9 +26,15 @@ jobs:
|
||||
docker rm -f automatic-parking
|
||||
fi
|
||||
|
||||
- name: Run new container
|
||||
- name: Run new container (Traefik enabled)
|
||||
run: |
|
||||
docker run -d \
|
||||
--name automatic-parking \
|
||||
-p 8080:80 \
|
||||
--network traefik \
|
||||
--label "traefik.enable=true" \
|
||||
--label "traefik.http.routers.automatic-parking.rule=Host(`app.automatic-parking.dev`)" \
|
||||
--label "traefik.http.routers.automatic-parking.entrypoints=websecure" \
|
||||
--label "traefik.http.routers.automatic-parking.tls.certresolver=le" \
|
||||
--label "traefik.http.services.automatic-parking.loadbalancer.server.port=8080" \
|
||||
--label "traefik.docker.network=traefik" \
|
||||
docker-registry.automatic-parking.dev/automatic-parking:poc
|
||||
@@ -2,7 +2,6 @@ FROM mcr.microsoft.com/dotnet/aspnet:10.0-preview AS base
|
||||
USER $APP_UID
|
||||
WORKDIR /app
|
||||
EXPOSE 8080
|
||||
EXPOSE 8081
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:10.0-preview AS build
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
|
||||
Reference in New Issue
Block a user