Files
IsaacandClaude Sonnet 5 6ef6465ee3
Build Image / build (push) Failing after 1m4s
ci: drop registry push, just build the image
Renamed pipeline from "Build and Push to Registry" to "Build Image".
Dropped the registry login/push/logout steps (needed secrets that
don't exist on the new instance) and the hardcoded git clone against
gitea.servernah.com in favor of actions/checkout, which works
regardless of which Gitea instance runs it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-11 11:01:06 +03:00

25 lines
786 B
YAML

name: Build Image
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Tags
id: vars
run: |
# Use the short git commit hash as a tag
echo "sha_short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
echo "image_path=devops-website" >> "$GITHUB_OUTPUT"
- name: Build Docker Image
run: |
docker build -t ${{ steps.vars.outputs.image_path }}:${{ steps.vars.outputs.sha_short }} .
docker tag ${{ steps.vars.outputs.image_path }}:${{ steps.vars.outputs.sha_short }} ${{ steps.vars.outputs.image_path }}:latest
- name: Show built image
run: docker images ${{ steps.vars.outputs.image_path }}