feat: füge Docker Build- und Push-Schritte zur CI hinzu
This commit is contained in:
@@ -20,4 +20,25 @@ jobs:
|
|||||||
go-version: '1.24'
|
go-version: '1.24'
|
||||||
- run: go version
|
- run: go version
|
||||||
- run: ls -lha
|
- run: ls -lha
|
||||||
- run: go build -v ./...
|
- run: go build -v ./...
|
||||||
|
|
||||||
|
publish:
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: gitea.ref == 'refs/heads/main'
|
||||||
|
steps:
|
||||||
|
- uses: https://github.com/actions/checkout@v6
|
||||||
|
- name: Setup Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
config-inline: |
|
||||||
|
[git.hnrx.net]
|
||||||
|
username = ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password = ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
- name: Build and Push Docker Image
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: git.hnrx.net/homelab/manage-servers:latest
|
||||||
|
file: ./Dockerfile
|
||||||
Reference in New Issue
Block a user