docker-dokuwiki-debian12/.gitea/workflows/build.yml
Marko Oldenburg 0c913d3f16
Some checks failed
Create dokuwiki docker image / Explore-Gitea-Actions (push) Failing after 10s
.gitea/workflows/build.yml aktualisiert
2024-09-17 04:58:38 +02:00

39 lines
1.2 KiB
YAML

name: Create dokuwiki docker image
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v2
with: # replace it with your local IP
config-inline: |
[registry."registry.tuxnet.lan"]
http = true
insecure = true
- name: Set Docker Version
id: get_version
run: |
DOCKER_VERSION=$(grep -oP '(?<=^ARG VERSION=).*' Dockerfile)
echo "Docker version: $DOCKER_VERSION"
echo "::set-output name=tag::$DOCKER_VERSION"
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
platforms: |
linux/amd64
push: true
tags: | # replace it with your local IP and tags
registry.tuxnet.lan/web/dokuwiki:${{ steps.get_version.outputs.tag }}