resume/.gitea/workflows/build-image.yaml
christian e06e4efbf8
Some checks failed
Build and Push Docker Image / build (push) Failing after 53s
added workflow for building image
2025-05-05 17:38:39 +02:00

38 lines
882 B
YAML

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 }}