From 509aee01987668b03e968b9f5dca7af32f2be8fb Mon Sep 17 00:00:00 2001 From: danthe42 Date: Thu, 6 Nov 2025 17:39:28 +0100 Subject: [PATCH] x --- .gitea/workflows/demo.yaml | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index c537cc6..5d74902 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -1,19 +1,30 @@ -name: Gitea Actions Demo +name: ci run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 on: [push] jobs: - Explore-Gitea-Actions: + docker: runs-on: ubuntu-latest steps: - - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - - name: Check out repository code + - name: Checkout uses: actions/checkout@v4 - - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ gitea.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + username: danthe + password: Secret666 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + version: "lab:latest" + driver: cloud + endpoint: "danthe/default" + install: true + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + tags: "danthe/test" + # For pull requests, export results to the build cache. + # Otherwise, push to a registry. + outputs: ${{ github.event_name == 'pull_request' && 'type=cacheonly' || 'type=registry,push=true' }}