Skip to content

Merge pull request #9 from eltociear/patch-1 #6

Merge pull request #9 from eltociear/patch-1

Merge pull request #9 from eltociear/patch-1 #6

name: Build and Push Docker Image
on:
push:
branches:
- main # Ändere das, falls du einen anderen Branch nutzen möchtest.
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
# Repository auschecken
- name: Checkout code
uses: actions/checkout@v3
# Docker-Setup
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# Login bei Docker Hub
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# Docker-Image bauen und pushen
- name: Build and Push Docker Image
uses: docker/build-push-action@v4
with:
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/paperless-ai:latest