adding ci/cd pipeline
All checks were successful
Build and Push Docker Container / build-and-push (push) Successful in 39s

This commit is contained in:
2025-03-26 17:28:16 +01:00
parent 923f1d5e73
commit f6cf715b3a

View File

@@ -0,0 +1,26 @@
name: Build and Push Docker Container
on:
push:
branches:
- "main"
jobs:
build-and-push:
runs-on:
- ubuntu-22.04
steps:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: git.kohout-dev.de
username: ${{ secrets.USERNAME }}
password: ${{ secrets.ACCESS_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: "git.kohout-dev.de/crowsnest/crowsnest:${{gitea.sha}},git.kohout-dev.de/crowsnest/crowsnest:latest"