Files
foundryvtt-docker/.gitea/workflows/build-docker-image-and-push.yaml
T
crovaxon ec0347fef9
Build foundry vtt docker image and push to registry / docker (push) Failing after 31s
Added checkout back in because of Dockerfile not existing
Though documentation says its optional to do that and should happen as part of the build step.
2024-06-17 10:52:41 +02:00

38 lines
955 B
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:
buildkitd-flags: --debug
config-inline: |
[registry."localhost:5000"]
http = true
insecure = true
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: localhost:5000
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASS }}
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: foundryvtt-docker:latest