Merge pull request #11 from hargata/Hargata/ghcr.auto

auto publish to GHCR
This commit is contained in:
Hargata Softworks
2024-01-06 22:07:33 -07:00
committed by GitHub
3 changed files with 7 additions and 6 deletions

View File

@@ -3,8 +3,6 @@ name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
@@ -14,5 +12,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 -u "hargata" -p "${{ 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