diff --git a/.github/workflows/build-and-deploy-to-ghpages.yaml b/.github/workflows/build-and-deploy-to-ghpages.yaml index 341b47b..c2c3f4b 100644 --- a/.github/workflows/build-and-deploy-to-ghpages.yaml +++ b/.github/workflows/build-and-deploy-to-ghpages.yaml @@ -35,7 +35,7 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm ci - - run: npm run build -- --base-href /loyolaorsino/ + - run: npm run build - run: cp ./dist/loyolaorsino/index.html ./dist/loyolaorsino/404.html - run: npm run test - name: Upload artifact diff --git a/.github/workflows/build-and-push-images.yaml b/.github/workflows/build-and-push-images.yaml deleted file mode 100644 index 9272f2c..0000000 --- a/.github/workflows/build-and-push-images.yaml +++ /dev/null @@ -1,57 +0,0 @@ -name: Build and Push Images - -on: - push: - tags: - - "v*.*.*" - pull_request: - branches: - - main - -env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} - -jobs: - build-and-push: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - name: Checkout repository - 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: Extract Docker metadata - id: meta - uses: docker/metadata-action@v4 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - tags: | - type=semver,pattern={{version}} - type=ref,event=pr - - - name: Log into registry ${{ env.REGISTRY }} - if: github.event_name != 'pull_request' - uses: docker/login-action@v2 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push Docker image - id: build-and-push - uses: docker/build-push-action@v4 - with: - context: ./ - platforms: linux/amd64,linux/arm64 - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 50aafee..0000000 --- a/Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -FROM node:20-alpine AS build -WORKDIR /loyolaorsino -COPY package.json package-lock.json ./ -RUN npm ci -COPY . . -RUN npm run build - -FROM nginx:alpine -COPY nginx.conf /etc/nginx/nginx.conf -COPY --from=build /loyolaorsino/dist/loyolaorsino usr/share/nginx/html -EXPOSE 80 diff --git a/docker-compose.yaml b/docker-compose.yaml deleted file mode 100644 index 4cbb822..0000000 --- a/docker-compose.yaml +++ /dev/null @@ -1,14 +0,0 @@ -services: - loyolaorsino: - container_name: loyolaorsino - image: ghcr.io/mweiershaeuser/loyolaorsino:1.1.0 - restart: always - networks: - - traefik_net - labels: - - traefik.enable=true - - traefik.http.routers.loyolaorsino.rule=Host(`loyolaorsino.com`) - -networks: - traefik_net: - external: true diff --git a/nginx.conf b/nginx.conf deleted file mode 100644 index 7f6178c..0000000 --- a/nginx.conf +++ /dev/null @@ -1,15 +0,0 @@ -events {} -http { - - include /etc/nginx/mime.types; - - server { - listen 80; - server_name localhost; - - location / { - root /usr/share/nginx/html; - try_files $uri $uri/ /index.html; - } - } -}