Files
foundryvtt-docker/.gitea/workflows/build-docker-image-and-push.yaml
T
Crovaxon 7cc2051528
Build foundry vtt docker image and push to registry / docker (push) Successful in 2m27s
V13 main.js path compatibility + docker image enhancements.
Preparing environment for building different Foundry dockers using a build argument to choose which node base image is being applied. Not strictly required right now, but might be useful in the future.
2025-05-03 18:20:48 +02:00

43 lines
1.2 KiB
YAML

name: Build foundry vtt docker image and push to registry
run-name: ${{ gitea.actor }} is building image and pushing to registry
on:
push:
branches:
- 'main'
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host
-
name: Login to Gitea
uses: docker/login-action@v3
with:
registry: gitea.crovaxon.de
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASS }}
-
name: Build and push v12 compatible build
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: gitea.crovaxon.de/crovaxon/foundryvtt-docker:v12
build-args: NODE_IMAGE_VERSION=20-alpine
-
name: Build and push v12 compatible build
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: gitea.crovaxon.de/crovaxon/foundryvtt-docker:v13,gitea.crovaxon.de/crovaxon/foundryvtt-docker:latest
build-args: NODE_IMAGE_VERSION=22-alpine