add gitea build
All checks were successful
Build Full Stack / release-image (push) Successful in 1m12s

This commit is contained in:
Nikola Kubiczek 2024-08-03 04:01:54 +02:00
parent 42157748f1
commit 2d1d44e09b
Signed by: yaemiku
GPG Key ID: ADC039636B3E4AAB

View File

@ -0,0 +1,46 @@
name: Build Full Stack
run-name: ${{ gitea.actor }} is building 🚀
on: [push]
jobs:
release-image:
runs-on: docker
container:
image: catthehacker/ubuntu:act-latest
env:
DOCKER_ORG: yaemiku
DOCKER_LATEST: latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: git.yaemiku.dev
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Get Meta
id: meta
run: |
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
platforms: |
linux/amd64
push: true
tags: |
git.yaemiku.dev/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
git.yaemiku.dev/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }}