38 lines
958 B
YAML
38 lines
958 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 |