Fix: ReferenceError in setupDefaultUser when using INITIAL_ADMIN_EMAIL/PASSWORD env vars #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docker Image CI | ||
|
Check failure on line 1 in .github/workflows/docker-publish.yml
|
||
| on: | ||
| push: | ||
| branches: [ "develop" ] | ||
| workflow_dispatch: | ||
| jobs: | ||
| build: | ||
| if: secrets.DOCKERHUB_USERNAME != '' && secrets.DOCKERHUB_TOKEN != '' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - | ||
| name: Checkout | ||
| uses: actions/checkout@v3 | ||
| - | ||
| name: Cache frontend artifacts | ||
| id: cache-frontend | ||
| uses: actions/cache@v3 | ||
| with: | ||
| path: frontend/dist | ||
| key: ${{ runner.os }}-frontend-${{ hashFiles('frontend/yarn.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-frontend- | ||
| - | ||
| name: Build Frontend if not cached | ||
| if: steps.cache-frontend.outputs.cache-hit != 'true' | ||
| run: | | ||
| chmod +x scripts/ci/frontend-build | ||
| ./scripts/ci/frontend-build | ||
| - | ||
| name: Set up QEMU | ||
| uses: docker/setup-qemu-action@v2 | ||
| - | ||
| name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v2 | ||
| - | ||
| name: Login to Docker Hub | ||
| uses: docker/login-action@v2 | ||
| with: | ||
| username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
| - | ||
| name: Build and push | ||
| uses: docker/build-push-action@v4 | ||
| with: | ||
| context: . | ||
| file: ./docker/Dockerfile | ||
| platforms: linux/amd64,linux/arm64,linux/arm/v7 | ||
| push: true | ||
| tags: ${{ secrets.DOCKERHUB_USERNAME }}/nginx-proxy-manager:develop | ||
| cache-from: type=gha | ||
| cache-to: type=gha,mode=max | ||