Some checks failed
Build and Push Docker Container / build-and-push (push) Has been cancelled
37 lines
1009 B
YAML
37 lines
1009 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 QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
with:
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
with:
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
- name: Setup Multiarch Build
|
|
run: |
|
|
docker buildx create --name multiarch --driver docker-container --use
|
|
|
|
- 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 .
|