Some checks failed
Build and Push Docker Container / build-and-push (push) Failing after -22s
33 lines
887 B
YAML
33 lines
887 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: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
with:
|
|
config-inline: |
|
|
[registry."git.kohout.dev.de"]
|
|
|
|
- name: Login to Docker Registry
|
|
run: |
|
|
echo "${{ secrets.ACCESS_TOKEN }}" | docker login git.kohout-dev.de -u "${{ secrets.USERNAME }}" --password-stdin
|
|
|
|
- name: Clone Repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Build and push Docker image
|
|
uses: https://github.com/docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: ./Dockerfile
|
|
push: true
|
|
tags: "git.kohout-dev.de/rezepte/rezepte:${{gitea.sha}},git.kohout-dev.de/rezepte/rezepte:latest"
|