From b8f65d55bf35cbe518196ade466f13b7c62e8b1c Mon Sep 17 00:00:00 2001 From: pi-ux-ce Date: Mon, 6 Apr 2026 10:00:26 +0000 Subject: [PATCH] Add .gitea/workflows/dockerfile_runner.yaml --- .gitea/workflows/dockerfile_runner.yaml | 46 +++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .gitea/workflows/dockerfile_runner.yaml diff --git a/.gitea/workflows/dockerfile_runner.yaml b/.gitea/workflows/dockerfile_runner.yaml new file mode 100644 index 0000000..54fdfee --- /dev/null +++ b/.gitea/workflows/dockerfile_runner.yaml @@ -0,0 +1,46 @@ +name: Gitea Actions Demo +run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +on: + push: + branches: + - "*" + paths: + - 'dockerfile' + tags-ignore: + - '*' + +jobs: + Explore-Gitea-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." + - name: Check out repository code + uses: actions/checkout@v4 + - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." + - name: List files in the repository + run: | + ls ${{ gitea.workspace }} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to gitea + uses: docker/login-action@v3 + with: + registry: gitea.tryton.geeraert.eu + username: ${{ secrets.USERNAME_GITEA }} + password: ${{ secrets.PASSWORD_GITEA }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + tags: | + gitea.tryton.geeraert.eu/pi-ux-ce/sharelatex-full:latest + gitea.tryton.geeraert.eu/pi-ux-ce/sharelatex-full:${{ vars.NGINX_VERSION }} + cache-from: type=registry,ref=gitea.tryton.geeraert.eu/pi-ux-ce/sharelatex-full:buildcache + cache-to: type=registry,ref=gitea.tryton.geeraert.eu/pi-ux-ce/sharelatex-full:buildcache,mode=max + build-args: | + NGINX_VERSION=${{ vars.NGINX_VERSION }} + + + - run: echo "🍏 This job's status is ${{ job.status }}."