From 5b753bed08fff053d9672239f9f8b6381a5132fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radim=20Lipov=C4=8Dan?= Date: Sun, 10 Dec 2023 15:10:20 +0100 Subject: [PATCH] =?UTF-8?q?P=C5=99idat=20.gitea/workflows/build.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..a516f92 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,25 @@ +name: Build nginx main +run-name: Build nginx main docker image +on: [push] +jobs: + Explore-Gitea-Actions: + runs-on: ubuntu-latest + steps: + - name: Prepare | Setup git + run: | + git config --global user.name "Radim LipovĨan" + git config --global user.email "radim@lipovcan.cz" + - name: Check out repository code + uses: actions/checkout@v3 + - name: Build | Install Docker + run: | + apt-get update && apt-get install docker.io -y + - name: Build | Clone repository + run: | + ls -lah + - name: Login to Docker Hub + run: | + echo "${{ secrets.DOCKERHUB_GITEA_TOKEN }}" | docker login -u ownercz --password-stdin + ls -lah + docker build -t ownercz/nginx-main:latest . + docker push ownercz/nginx-main \ No newline at end of file