confetti-api/.gitea/workflows/build-push.yaml
hook-lord 182fafbf2a
Some checks failed
Build and Push / build (push) Failing after 1m29s
registry name
2024-09-14 00:33:27 +02:00

37 lines
862 B
YAML

# Build docker image and push it to registry
name: Build and Push
on:
push:
branches:
- main
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Gitea Container Registry
uses: docker/login-action@v1
with:
registry: gitea.rannes.dev
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: rannes.dev/confetti-api:${{ github.ref_name }}