2024-09-16 17:35:30 +00:00
|
|
|
name: Create dokuwiki docker image
|
2024-09-16 12:54:30 +00:00
|
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
|
|
on: [push]
|
2024-09-16 12:07:03 +00:00
|
|
|
|
|
|
|
jobs:
|
2024-09-16 12:54:30 +00:00
|
|
|
Explore-Gitea-Actions:
|
2024-09-16 12:52:23 +00:00
|
|
|
runs-on: ubuntu-latest
|
2024-09-16 12:07:03 +00:00
|
|
|
steps:
|
2024-09-16 13:06:06 +00:00
|
|
|
- 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
|
2024-09-16 17:22:03 +00:00
|
|
|
insecure = true
|
|
|
|
|
2024-09-17 02:58:38 +00:00
|
|
|
- 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"
|
|
|
|
|
2024-09-16 17:22:03 +00:00
|
|
|
- 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
|
2024-09-17 02:58:38 +00:00
|
|
|
registry.tuxnet.lan/web/dokuwiki:${{ steps.get_version.outputs.tag }}
|