diff --git a/.github/workflows/prod_deploy.yaml b/.github/workflows/prod_deploy.yaml index 09829dc9..fb5ebff4 100644 --- a/.github/workflows/prod_deploy.yaml +++ b/.github/workflows/prod_deploy.yaml @@ -15,58 +15,58 @@ defaults: working-directory: . jobs: - pytest: - runs-on: ubuntu-latest - name: pytest - steps: - - name: Install Python - uses: actions/setup-python@v4 - with: - python-version: 3.11 - - - name: Install Poetry - uses: snok/install-poetry@v1 - with: - poetry-version: 1.5.0 - - - name: Check out the repo - uses: actions/checkout@v4 - - - name: Install dependencies - run: | - poetry install - - name: pytest - run: | - poetry run pytest - working-directory: adaptive_hockey_federation - build_and_push: - needs: pytest - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Extract metadata for Docker - id: meta - uses: docker/metadata-action@v5 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - - name: Build and push Docker image for Production - uses: docker/build-push-action@v5 - with: - context: . - file: infra/prod/prod.Dockerfile - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} + # pytest: + # runs-on: ubuntu-latest + # name: pytest + # steps: + # - name: Install Python + # uses: actions/setup-python@v4 + # with: + # python-version: 3.11 + + # - name: Install Poetry + # uses: snok/install-poetry@v1 + # with: + # poetry-version: 1.5.0 + + # - name: Check out the repo + # uses: actions/checkout@v4 + + # - name: Install dependencies + # run: | + # poetry install + # - name: pytest + # run: | + # poetry run pytest + # working-directory: adaptive_hockey_federation + # build_and_push: + # needs: pytest + # runs-on: ubuntu-latest + + # steps: + # - uses: actions/checkout@v3 + + # - name: Login to GitHub Container Registry + # uses: docker/login-action@v3 + # with: + # registry: ${{ env.REGISTRY }} + # username: ${{ github.actor }} + # password: ${{ secrets.GITHUB_TOKEN }} + + # - name: Extract metadata for Docker + # id: meta + # uses: docker/metadata-action@v5 + # with: + # images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + + # - name: Build and push Docker image for Production + # uses: docker/build-push-action@v5 + # with: + # context: . + # file: infra/prod/prod.Dockerfile + # push: true + # tags: ${{ steps.meta.outputs.tags }} + # labels: ${{ steps.meta.outputs.labels }} deploy: name: Deploy changes on server diff --git a/infra/nginx/default.conf b/infra/nginx/default.conf index 73bcb779..bb600def 100644 --- a/infra/nginx/default.conf +++ b/infra/nginx/default.conf @@ -6,10 +6,10 @@ server { } server { - listen 443 ssl http2; # REMOVED default_server - listen [::]:443 ssl http2; # REMOVED default_server + listen 443 ssl http2; + listen [::]:443 ssl http2; - server_name ${HOST}; # PUT YOUR DOMAIN HERE + server_name ${HOST}; include /config/nginx/ssl.conf;