confetti-api/.gitea/workflows/build-push.yaml

37 lines
879 B
YAML
Raw Normal View History

2024-09-13 22:18:42 +00:00
# Build docker image and push it to registry
name: Build and Push
on:
push:
branches:
- main
tags:
2024-09-13 22:23:12 +00:00
- v*
2024-09-13 22:18:42 +00:00
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
2024-09-13 22:35:57 +00:00
tags: gitea.rannes.dev/rannes.dev/confetti-api:${{ github.ref_name }}