.gitea/workflows/gitea-ci.yaml aktualisiert

This commit is contained in:
Marko Oldenburg 2024-09-16 14:29:46 +02:00
parent 454eff02fa
commit 69583b7e41

View File

@ -2,28 +2,35 @@
# .gitea/workflows/gitea-ci.yaml # .gitea/workflows/gitea-ci.yaml
# #
name: Build And Test name: Build And Push
run-name: ${{ gitea.actor }} is runs ci pipeline run-name: ${{ gitea.actor }} is runs ci pipeline
on: [ push ] on: [ push ]
jobs: jobs:
publish: release-image:
runs-on: cth-ubuntu-latest runs-on: ubuntu-latest
needs: build
if: gitea.ref == 'refs/heads/main'
steps: steps:
- uses: https://github.com/actions/checkout@v4 - name: Checkout
- name: Set up Docker Buildx uses: actions/checkout@v3
uses: https://github.com/docker/setup-buildx-action@v3
with: - 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: | config-inline: |
[registry."registry.tuxnet.lan"] [registry."registry.tuxnet.lan"]
http = true http = true
insecure = true insecure = true
- name: Build and push Docker image
uses: https://github.com/docker/build-push-action@v5 - name: Build and push
with: uses: docker/build-push-action@v4
context: . with:
file: ./Dockerfile context: .
push: true file: ./Dockerfile
tags: "registry.tuxnet.lan/web/dokuwiki:${{gitea.sha}}" 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