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