Skip to content

Fix: ReferenceError in setupDefaultUser when using INITIAL_ADMIN_EMAIL/PASSWORD env vars #1

Fix: ReferenceError in setupDefaultUser when using INITIAL_ADMIN_EMAIL/PASSWORD env vars

Fix: ReferenceError in setupDefaultUser when using INITIAL_ADMIN_EMAIL/PASSWORD env vars #1

name: Docker Image CI

Check failure on line 1 in .github/workflows/docker-publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docker-publish.yml

Invalid workflow file

(Line: 10, Col: 9): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.DOCKERHUB_USERNAME != '' && secrets.DOCKERHUB_TOKEN != ''
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