From fd4ff45591da0b1f13b50b8a629349708f45f995 Mon Sep 17 00:00:00 2001 From: ratelok Date: Thu, 14 Aug 2025 14:47:32 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20.gitea/workflows/Runner.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/Runner.yaml | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .gitea/workflows/Runner.yaml diff --git a/.gitea/workflows/Runner.yaml b/.gitea/workflows/Runner.yaml new file mode 100644 index 0000000..9ce3bc4 --- /dev/null +++ b/.gitea/workflows/Runner.yaml @@ -0,0 +1,40 @@ +name: Build'n'Push +run-name: ${{ gitea.actor }} building and deploying images +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 # all history for all branches and tags + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to registry + uses: docker/login-action@v2 + with: + registry: git.arrowlab.ru + username: ${{ secrets.USER }} + password: ${{ secrets.PASSWORD }} + + - name: Build and push + uses: docker/build-push-action@v4 + env: + ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119 + with: + context: . + file: ./Dockerfile + platforms: | + linux/amd64 + push: true +# tags: git.arrowlab.ru/${{ gitea.repository }}:${{ gitea.ref_name }} + tags: git.arrowlab.ru/ratelok/docker_task2_2:main \ No newline at end of file