Compare commits
7
Commits
71fa841085
...
ef5ec56c24
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ef5ec56c24 | ||
|
|
6a3488eb41 | ||
|
|
48733ff07c | ||
|
|
fd8f8c5067 | ||
|
|
4e1183214f | ||
|
|
a55d48c48e | ||
|
|
7e989f1408 |
No files matched your search
@@ -1,6 +1,5 @@
|
|||||||
name: Docker Build & Push
|
name: Docker Build & Push
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
@@ -19,15 +18,20 @@ jobs:
|
|||||||
username: ${{ gitea.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.token }}
|
password: ${{ secrets.token }}
|
||||||
|
|
||||||
- name: Docker Image bauen und pushen
|
- name: Docker Image bauen (nur lokal im Runner)
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: false
|
||||||
tags: |
|
tags: |
|
||||||
127.0.0.1:3000/rudi/tandur:${{ gitea.ref_name }}
|
127.0.0.1:3000/rudi/tandur:${{ gitea.ref_name }}
|
||||||
127.0.0.1:3000/rudi/tandur:latest
|
127.0.0.1:3000/rudi/tandur:latest
|
||||||
|
|
||||||
|
- name: Images zu Gitea pushen
|
||||||
|
run: |
|
||||||
|
docker push 127.0.0.1:3000/rudi/tandur:${{ gitea.ref_name }}
|
||||||
|
docker push 127.0.0.1:3000/rudi/tandur:latest
|
||||||
|
|
||||||
release:
|
release:
|
||||||
if: startsWith(gitea.ref, 'refs/tags/v')
|
if: startsWith(gitea.ref, 'refs/tags/v')
|
||||||
needs: build
|
needs: build
|
||||||
@@ -39,6 +43,21 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Gitea Release erstellen
|
- name: Gitea Release erstellen
|
||||||
uses: https://gitea.com/actions/release-action@main
|
uses: https://gitea.com/actions/gitea-release-action@main
|
||||||
with:
|
with:
|
||||||
api_key: '${{ secrets.TOKEN }}'
|
api_key: '${{ secrets.TOKEN }}'
|
||||||
|
files: |-
|
||||||
|
docker-compose.yaml
|
||||||
|
body: |
|
||||||
|
## Docker Image:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker pull git.schamagusa.de/rudi/tandur:latest
|
||||||
|
```
|
||||||
|
## Docker Compose
|
||||||
|
Download the `docker-compose.yaml`
|
||||||
|
and then
|
||||||
|
```
|
||||||
|
docker compose pull
|
||||||
|
docker compose up -d
|
||||||
|
```
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
services:
|
||||||
|
tandur:
|
||||||
|
image: git.schamagusa.de/rudi/tandur:latest
|
||||||
|
container_name: tandur
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "8000:8000"
|
||||||
|
volumes:
|
||||||
|
- tandur-data:/app/data
|
||||||
|
#environment:
|
||||||
|
# - TZ=Europe/Berlin
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
tandur-data:
|
||||||
Reference in new issue
Block a user