confetti-api/.gitea/workflows/build-push.yaml
hook-lord 71f742d107
All checks were successful
Build and Push / build (push) Successful in 1m31s
image name
2024-09-14 00:35:57 +02:00

37 lines
879 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: gitea.rannes.dev/rannes.dev/confetti-api:${{ github.ref_name }}