diff --git a/.github/workflows/docker-builds.yml b/.github/workflows/docker-builds.yml index fca5d764..3cbd1466 100644 --- a/.github/workflows/docker-builds.yml +++ b/.github/workflows/docker-builds.yml @@ -177,6 +177,40 @@ jobs: labels: ${{ steps.meta.outputs.labels }} build-args: config=nginx-dev.conf + build-nginx-mp: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + needs: build-angular + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Log in to the Container registry + uses: docker/login-action@v1 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v4 + with: + images: ${{ env.REGISTRY }}/${{ env.NGINX_IMAGE }} + tags: | + type=raw,value=ceam + + - name: Build and push Cyanweb Nginx Docker image + uses: docker/build-push-action@v2 + with: + context: . + file: docker/nginx/Dockerfile_MP + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + build-redis: runs-on: ubuntu-latest permissions: diff --git a/docker/nginx/Dockerfile_MP.Dockerfile b/docker/nginx/Dockerfile_MP.Dockerfile new file mode 100644 index 00000000..31c0edab --- /dev/null +++ b/docker/nginx/Dockerfile_MP.Dockerfile @@ -0,0 +1,16 @@ +# # Builds a small nginx image with static website +FROM nginx:stable-alpine3.19-slim + +ARG config=nginx.conf + +RUN apk update && \ + apk upgrade --available + +RUN rm -rf /usr/share/nginx/html/* && \ + rm /etc/nginx/conf.d/default.conf + +COPY ./docker/nginx/$config /etc/nginx/conf.d + +# COPY --from=ghcr.io/usepa/cyanweb-angular:dev-kube /app/dist /usr/share/nginx/html + +COPY ./docker/nginx/index_mp.html /usr/shar/nginx/html