From f02154bfd354a13e9ab107cbb4229df84f999efa Mon Sep 17 00:00:00 2001 From: Aleksey Lobanov Date: Sun, 21 Jul 2024 22:18:31 +0300 Subject: [PATCH] ci: New local docker --- .gitea/workflows/local-docker.yaml | 37 ++++++++++++++---------------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/.gitea/workflows/local-docker.yaml b/.gitea/workflows/local-docker.yaml index 3334db6..2c631df 100644 --- a/.gitea/workflows/local-docker.yaml +++ b/.gitea/workflows/local-docker.yaml @@ -1,31 +1,28 @@ +--- name: Push to local registry run-name: ${{ gitea.actor }} is pushing -> local Docker -on: [push] - +on: + - push jobs: build: name: Build and push image runs-on: ubuntu-latest container: catthehacker/ubuntu:act-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Login to Docker Registry - uses: docker/login-action@v3 - with: - registry: gitea.likemath.ru - username: ${{ secrets.REGISTRY_USERNAME }} - password: ${{ secrets.REGISTRY_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v5 - with: - context: . - push: true - tags: + - name: Checkout + uses: actions/checkout@v4 + - name: Login to Docker Registry + uses: docker/login-action@v3 + with: + registry: gitea.likemath.ru + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: - alex/s3-mirror:latest - s3-mirror:latest - # platforms: linux/amd64,linux/arm64