2024-09-16 12:07:03 +00:00
|
|
|
#
|
|
|
|
# .gitea/workflows/gitea-ci.yaml
|
|
|
|
#
|
|
|
|
|
2024-09-16 12:29:46 +00:00
|
|
|
name: Build And Push
|
2024-09-16 12:07:03 +00:00
|
|
|
run-name: ${{ gitea.actor }} is runs ci pipeline
|
|
|
|
on: [ push ]
|
|
|
|
|
|
|
|
jobs:
|
2024-09-16 12:29:46 +00:00
|
|
|
release-image:
|
|
|
|
runs-on: ubuntu-latest
|
2024-09-16 12:07:03 +00:00
|
|
|
steps:
|
2024-09-16 12:29:46 +00:00
|
|
|
- name: Set up Docker BuildX
|
2024-09-16 12:35:48 +00:00
|
|
|
uses: https://github.com/docker/setup-buildx-action@v3
|
2024-09-16 12:29:46 +00:00
|
|
|
with: # replace it with your local IP
|
2024-09-16 12:07:03 +00:00
|
|
|
config-inline: |
|
2024-09-16 12:29:46 +00:00
|
|
|
[registry."registry.tuxnet.lan"]
|
2024-09-16 12:07:03 +00:00
|
|
|
http = true
|
2024-09-16 12:35:26 +00:00
|
|
|
insecure = true
|
2024-09-16 12:29:46 +00:00
|
|
|
|
|
|
|
- name: Build and push
|
2024-09-16 12:35:26 +00:00
|
|
|
uses: https://github.com/docker/build-push-action@v5
|
2024-09-16 12:30:51 +00:00
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: ./Dockerfile
|
|
|
|
platforms: |
|
|
|
|
linux/amd64
|
|
|
|
push: true
|
|
|
|
tags: | # replace it with your local IP and tags
|
|
|
|
registry.tuxnet.lan/web/dokuwiki:20240206.2.0-debian-12-r3
|