Add Enigma BBS deployment files
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled

This commit is contained in:
capitano
2026-04-06 11:07:27 +02:00
parent ed614eb436
commit 6a39457989
8 changed files with 338 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
paths:
- 'Dockerfile'
- '.gitea/**/*.yaml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Container Registry
uses: docker/login-action@v3
with:
registry: git.giaco.net
username: ${{ vars.GIT_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: git.giaco.net/enigma/enigmabbs
tags: |
type=ref,event=branch
type=raw,value=latest
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max