Files
TinfoilVibeServer/.gitea/workflows/ci.yaml
T
ecenshu fae1979e04
Build & Push Docker image / build-and-push (push) Failing after 40s
ci / build_linux (push) Failing after 1m13s
Tabs
2025-11-07 21:31:19 +10:30

35 lines
1.1 KiB
YAML

name: ci
on: [push, pull_request]
jobs:
build_linux:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Convert to lowercase
id: github_repository_to_lowercase
uses: step-security/change-string-case-action@v6
with:
inputStr: ${{ github.repository }} # Replace with your variable
- name: Build image
id: build
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
# do not push yet
push: false
tags: |
${{ secrets.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.sha }}
${{ secrets.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.ref_name }}
${{ secrets.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:latest
build-args: |
# Add any build args here
# ARG_NAME=VALUE