Files
rezepte/.gitea/workflows/docker-build.yml
eliaskohout 044ea895bd
Some checks failed
Build and Push Docker Container / build-and-push (push) Failing after -14s
.gitea/workflows/docker-build.yml aktualisiert
2025-03-25 20:39:28 +00:00

35 lines
885 B
YAML

# .gitea/workflows/docker-build.yml
name: Build and Push Docker Container
on:
push:
branches:
- "*"
jobs:
build-and-push:
runs-on:
- ubuntu-22.04
steps:
- name: Install Docker
run: |
apt-get update
apt-get install -y docker.io
- name: Clone Repository
uses: actions/checkout@v3
- name: Login to Docker Registry
run: |
echo "$DOCKER_TOKEN" | docker login git.kohout-dev.de -u "$DOCKER_USERNAME" --password-stdin
env:
DOCKER_TOKEN: ${{ secrets.ACCESS_TOKEN_DOCKER_BUILD }}
DOCKER_USERNAME: ${{ secrets.USERNAME_DOCKER_BUILD }}
- name: Build Docker Image
run: |
docker build -t git.kohout-dev.de/rezepte/rezepte:latest .
- name: Push Docker Image
run: |
docker push git.kohout-dev.de/rezepte/rezepte:latest