add docker build pipeline
All checks were successful
Build and Push Docker Container / build-and-push (push) Successful in 4m38s
All checks were successful
Build and Push Docker Container / build-and-push (push) Successful in 4m38s
This commit is contained in:
27
.gitea/workflows/docker-build.yml
Normal file
27
.gitea/workflows/docker-build.yml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# .gitea/workflows/docker-build.yml
|
||||||
|
name: Build and Push Docker Container
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "*"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-push:
|
||||||
|
runs-on:
|
||||||
|
- ubuntu-24.04
|
||||||
|
steps:
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: g.eliaskohout.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: "g.eliaskohout.de/eliaskohout/ax:${{gitea.sha}},g.eliaskohout.de/eliaskohout/ax:latest"
|
||||||
Reference in New Issue
Block a user