Merge pull request #11 from hargata/Hargata/ghcr.auto
auto publish to GHCR
This commit is contained in:
9
.github/workflows/docker-image.yml
vendored
9
.github/workflows/docker-image.yml
vendored
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user