From 8d1e0474c4055a05ea14ba5aa2876ea16ef7470c Mon Sep 17 00:00:00 2001 From: Matthias Guillitte Date: Thu, 6 Feb 2025 18:25:40 +0100 Subject: [PATCH] Reset gitea actions --- .gitea/workflows/demo.yaml | 10 ---------- .gitea/workflows/pushImage.yaml | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 10 deletions(-) delete mode 100644 .gitea/workflows/demo.yaml create mode 100644 .gitea/workflows/pushImage.yaml diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml deleted file mode 100644 index a53a2fd..0000000 --- a/.gitea/workflows/demo.yaml +++ /dev/null @@ -1,10 +0,0 @@ -name: Gitea Actions Demo -on: [push] - -jobs: - Explore-Gitea-Actions: - 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 }}." diff --git a/.gitea/workflows/pushImage.yaml b/.gitea/workflows/pushImage.yaml new file mode 100644 index 0000000..3e45443 --- /dev/null +++ b/.gitea/workflows/pushImage.yaml @@ -0,0 +1,23 @@ +name: Push image to registry +on: + push: + branches: + - main + + +jobs: + build-image: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: git.matthiasg.dev + username: ninluc + password: ${{ secrets.REGISTRY_TOKEN }} + - name: Build and push + run: | + docker build -t git.matthiasg.dev/ninluc/datbrowser:latest . + docker push git.matthiasg.dev/ninluc/datbrowser:latest