2023-08-03 17:57:16 -04:00
|
|
|
name: Test build
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-08-03 21:24:22 -04:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v2
|
2023-08-03 17:57:16 -04:00
|
|
|
- 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
|
2023-08-03 20:51:21 -04:00
|
|
|
username: ${{ gitea.repository_owner }}
|
2023-08-03 21:24:22 -04:00
|
|
|
password: ${{ gitea.token }}
|
2023-08-03 17:57:16 -04:00
|
|
|
- name: Build and push
|
2023-08-03 20:51:21 -04:00
|
|
|
uses: docker/build-push-action@master
|
2023-08-03 17:57:16 -04:00
|
|
|
with:
|
|
|
|
push: true
|
2023-08-03 21:24:22 -04:00
|
|
|
context: .
|
2023-08-04 01:08:25 -04:00
|
|
|
tags: ${{ gitea.repository }}:latest
|