# .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 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"