Container
Some checks failed
release-tag / release-image (push) Failing after 1m59s

This commit is contained in:
2025-11-07 09:31:46 +01:00
parent 9dbea6b49b
commit bb90422b4a
2 changed files with 52 additions and 0 deletions

44
.gitea/workflows/ci.yaml Normal file
View File

@@ -0,0 +1,44 @@
name: release-tag
on:
push:
branches: [main]
jobs:
release-image:
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:act-22.04
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3
- name: Login to Container Registry
uses: docker/login-action@v3
with:
registry: gitea.marijndoeve.nl
username: ${{ gitea.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: gitea.marijndoeve.nl/${{github.repository_owner}}/dynmap-web
tags: |
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push
uses: docker/build-push-action@v6
env:
ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119
with:
context: containers/web
file: containers/web/Containerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

View File

@@ -0,0 +1,8 @@
FROM php:8.4-apache
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libpq-dev \
&& docker-php-ext-install pdo_pgsql \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*