auto publish to GHCR

This commit is contained in:
DESKTOP-GENO133\IvanPlex
2024-01-06 21:46:29 -07:00
parent bfef9b9498
commit d625a91ed7
3 changed files with 7 additions and 4 deletions

View File

@@ -14,5 +14,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag lubelogger:$(date +%s)
- name: Build and push the Docker image
run: |
docker login --username hargata --password {{ secrets.GHCR_PAT }} ghcr.io
docker build . --file Dockerfile --tag ghcr.io/hargata/lubelogger:latest
docker push ghcr.io/hargata/lubelogger:latest

View File

@@ -3,7 +3,7 @@ version: "3.4"
services:
app:
image: hargata/lubelog:latest
image: ghcr.io/hargata/lubelogger:latest
build: .
restart: unless-stopped
# volumes used to keep data persistent

View File

@@ -3,7 +3,7 @@ version: "3.4"
services:
app:
image: hargata/lubelog:latest
image: ghcr.io/hargata/lubelogger:latest
build: .
restart: unless-stopped
# volumes used to keep data persistent