From c548d466a6feb3396703381e89560f89adcc9383 Mon Sep 17 00:00:00 2001 From: marcus Date: Sun, 9 Feb 2025 10:44:57 +0100 Subject: [PATCH] Build Workflow added --- .gitea/workflows/demo.yaml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index d67ac59..3c09e70 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -1,19 +1,17 @@ -name: Gitea Actions Demo -run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +name: Docker Build +run-name: Building Docker Image from Docker File on: [push] jobs: - Explore-Gitea-Actions: + Docker-Build: 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 - uses: actions/checkout@v3 - - 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 + uses: actions/checkout@main + - name: build-and-push run: | - ls ${{ gitea.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." \ No newline at end of file + mkdir -pv /etc/docker/certs.d/gitea.de.kilhaasi/ + openssl s_client -connect gitea.de.kilhaasi:443 /dev/null | openssl x509 -inform pem > /etc/docker/certs.d/gitea.de.kilhaasi/ca.crt + docker build --tag gitea.de.kilhaasi/marcus/pms . + docker login -u marcus -p xvu0tjg5tak7ZGM!zum gitea.de.kilhaasi + docker push gitea.de.kilhaasi/marcus/pms \ No newline at end of file