Some checks failed
Build and Push Docker Container / build-and-push (push) Failing after -24s
30 lines
819 B
YAML
30 lines
819 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"]
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
- 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
|
|
run: |
|
|
docker buildx build --platform linux/amd64,linux/arm64 --push -t git.kohout-dev.de/rezepte/rezepte:latest .
|