Files
gun-manager/.gitea/workflows/build.yml
Ron Rise fac9dc0b92
Some checks failed
🏗️✨ Build Workflow / 🖥️ 🔨 Build (push) Failing after 31s
update .gitignore, modify Docker Hub credentials in workflow, and add usage instructions to README
2025-07-29 10:48:23 -04:00

42 lines
1.0 KiB
YAML

on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to build and push'
required: false
default: 'latest'
push:
tags:
- "v*"
name: 🏗️✨ Build Workflow
jobs:
Build:
name: 🖥️ 🔨 Build
runs-on: ubuntu-latest
steps:
- name: 📖 🔍 Checkout Repository Code
uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: 'true'
- name: 🔑 🔐 Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.SITEWORX_USERNAME }}
password: ${{ secrets.SITEWORX_PASSWORD }}
- name: 🏗️ 🔧 Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: 🐳 🔨 Build Container
uses: docker/build-push-action@v6
with:
sbom: true
provenance: true
platforms: linux/arm64,linux/amd64
context: .
dockerfile: Dockerfile
tags: scr.siteworxpro.com/gun-manager:${{ gitea.ref_name }}