add workflow

This commit is contained in:
minish 2023-09-02 23:02:42 -04:00
parent 43b755e649
commit 721b350820
Signed by: min
GPG Key ID: FEECFF24EF0CE9E9
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
name: Build Docker images
on:
push:
branches:
- main
jobs:
push-image:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: git.min.rip
username: ${{ gitea.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: git.min.rip/${{ gitea.repository }}:${{ gitea.ref_name }}