gittea/workflows.yml hinzugefügt

This commit is contained in:
Steev 2025-01-09 08:55:57 +01:00
parent 086bd8bff6
commit 1100a27cc9

25
gittea/workflows.yml Normal file
View File

@ -0,0 +1,25 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Log in to DockerHub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: Build Docker Image
run: |
docker build -t your-private-repo/your-image-name:latest .
- name: Push Docker Image
run: |
docker push your-private-repo/your-image-name:latest