Skip to content

Commit 1ba87dc

Browse files
committed
updated compose file and added docker action
1 parent 3244cda commit 1ba87dc

2 files changed

Lines changed: 39 additions & 2 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
name: Build and Publish Docker Image
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
packages: write
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Docker Buildx
23+
uses: docker/setup-buildx-action@v3
24+
25+
- name: Login to GHCR
26+
uses: docker/login-action@v3
27+
with:
28+
registry: ghcr.io
29+
username: ${{ github.actor }}
30+
password: ${{ secrets.GITHUB_TOKEN }}
31+
32+
- name: Build and publish
33+
uses: docker/build-push-action@v6
34+
with:
35+
context: .
36+
push: true
37+
tags: latest

‎docker-compose.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ services:
2222
- PORT=3000
2323
- HOST=0.0.0.0
2424
- SESSION_SECRET=${SESSION_SECRET}
25-
- WHITELIST=${WHITELIST}
26-
- WHITELISTFEATURE=${WHITELISTFEATURE:-TRUE}
25+
- WHITELIST=Bob
26+
- WHITELISTFEATURE=TRUE
2727
- SESSION_MAX_AGE_HOURS=24
2828
- COOKIE_SECURE=true
2929
- TRUST_PROXY=false

0 commit comments

Comments
 (0)