Compare commits

...

2 Commits

Author SHA1 Message Date
Schuwi
c444597632 fix: auth password for production
All checks were successful
Code Quality / Code Quality (Elixir 1.15.7 OTP 26.2) (push) Successful in 1m59s
Docker Build and Publish / docker-build (push) Successful in 59s
- set password with runtime env variable
2025-09-21 12:13:20 +02:00
Schuwi
6548a06b43 ci: fix container tags again
All checks were successful
Code Quality / Code Quality (Elixir 1.15.7 OTP 26.2) (push) Successful in 1m53s
Docker Build and Publish / docker-build (push) Successful in 1m2s
2025-09-21 11:33:15 +02:00
4 changed files with 7 additions and 7 deletions

View File

@@ -26,14 +26,13 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
tags: |
# Keep a moving branch tag (e.g., main)
type=ref,event=branch
# Latest tag will automatically be generated for the latest tagged release
# Version tag on releases (e.g., v1.2.3)
type=ref,event=tag
# Keep a moving branch tag (e.g., main)
type=ref,event=branch
# Snapshot tag for commits on the default branch (e.g., snapshot-<hash>)
type=raw,value=snapshot-{{sha}},enable={{is_default_branch}}
# Move "latest" only when building from a tag
type=raw,value=latest,enable={{is_tag}}
- name: Log in to Container Registry
uses: docker/login-action@v3

View File

@@ -9,8 +9,7 @@ import Config
config :components_elixir,
ecto_repos: [ComponentsElixir.Repo],
generators: [timestamp_type: :utc_datetime],
auth_password: System.get_env("AUTH_PASSWORD", "changeme")
generators: [timestamp_type: :utc_datetime]
# Configures the endpoint
config :components_elixir, ComponentsElixirWeb.Endpoint,

View File

@@ -2,7 +2,8 @@ import Config
# Runtime configuration for uploads directory
config :components_elixir,
uploads_dir: System.get_env("UPLOADS_DIR", "./uploads")
uploads_dir: System.get_env("UPLOADS_DIR", "./uploads"),
auth_password: System.get_env("AUTH_PASSWORD", "changeme")
# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the

View File

@@ -26,6 +26,7 @@ services:
PHX_SERVER: "true"
PORT: "4000"
UPLOADS_DIR: "/data/uploads"
AUTH_PASSWORD: "changeme!"
depends_on:
db:
condition: service_healthy