.gitea/workflows/gitea-ci.yaml aktualisiert
This commit is contained in:
parent
454eff02fa
commit
69583b7e41
@ -2,28 +2,35 @@
|
||||
# .gitea/workflows/gitea-ci.yaml
|
||||
#
|
||||
|
||||
name: Build And Test
|
||||
name: Build And Push
|
||||
run-name: ${{ gitea.actor }} is runs ci pipeline
|
||||
on: [ push ]
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: cth-ubuntu-latest
|
||||
needs: build
|
||||
if: gitea.ref == 'refs/heads/main'
|
||||
release-image:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: https://github.com/actions/checkout@v4
|
||||
- name: Set up Docker Buildx
|
||||
uses: https://github.com/docker/setup-buildx-action@v3
|
||||
with:
|
||||
- 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: Build and push Docker image
|
||||
uses: https://github.com/docker/build-push-action@v5
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
platforms: |
|
||||
linux/amd64
|
||||
push: true
|
||||
tags: "registry.tuxnet.lan/web/dokuwiki:${{gitea.sha}}"
|
||||
tags: | # replace it with your local IP and tags
|
||||
registry.tuxnet.lan/web/dokuwiki:20240206.2.0-debian-12-r3
|
Loading…
Reference in New Issue
Block a user