.gitea/workflows/build-and-push.yml aktualisiert
Some checks failed
Build & Push Image / build-image (push) Has been cancelled
Some checks failed
Build & Push Image / build-image (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,25 @@
|
|||||||
|
name: Build & Push Image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["main"]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-image:
|
||||||
|
runs-on: self-hosted
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Log in to Container Registry
|
||||||
|
run: |
|
||||||
|
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.chavokhaliz.de \
|
||||||
|
-u "${{ secrets.REGISTRY_USER }}" --password-stdin
|
||||||
|
|
||||||
|
- name: Build Docker Image
|
||||||
|
run: |
|
||||||
|
docker build -t gitea.deinedomain.com/${{ secrets.REGISTRY_USER }}/test-app:latest .
|
||||||
|
|
||||||
|
- name: Push Image
|
||||||
|
run: |
|
||||||
|
docker push gitea.deinedomain.com/${{ secrets.REGISTRY_USER }}/test-app:latest
|
||||||
Reference in New Issue
Block a user