Files
homelab/.gitea/workflows/build.yaml

28 lines
1.0 KiB
YAML

name: Reese's Arch Toolbox
run-name: Build and Push Reese's Arch Toolbox
on:
push:
paths:
- infrastructure/graduated/fedora/arch.containerfile
jobs:
build-and-push-arch-toolbox:
runs-on: ubuntu-latest
if: gitea.ref == 'refs/heads/main'
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Login to Gitea Registry
uses: docker/login-action@v2
with:
registry: gitea.reeseapps.com
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push Docker image
uses: https://github.com/docker/build-push-action@v5
with:
context: ${{ gitea.workspace }}/infrastructure/graduated/fedora
file: ${{ gitea.workspace }}/infrastructure/graduated/fedora/arch.containerfile
push: true
tags: "gitea.reeseapps.com/services/arch-toolbox:latest,gitea.reeseapps.com/services/arch-toolbox:${{gitea.sha}}"
no-cache: true