added workflow for building image
Some checks failed
Build and Push Docker Image / build (push) Failing after 53s

This commit is contained in:
christian 2025-05-05 17:38:39 +02:00
parent c269ada0c0
commit e06e4efbf8

View File

@ -0,0 +1,37 @@
name: Build and Push Docker Image
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: gitea.rannes.dev/rannes.dev/resume
tags: |
type=sha,prefix={{branch}}-
type=raw,value=latest
- name: Login to Gitea Registry
uses: docker/login-action@v3
with:
registry: gitea.rannes.dev
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}