From 0dcacfefaab5895ba85a738cc76a860ecb47d5d7 Mon Sep 17 00:00:00 2001 From: Brieuc Dubois Date: Sun, 21 Jan 2024 18:30:33 +0100 Subject: [PATCH] CI/CD --- .gitea/workflows/cicd.yaml | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .gitea/workflows/cicd.yaml diff --git a/.gitea/workflows/cicd.yaml b/.gitea/workflows/cicd.yaml new file mode 100644 index 0000000..20ef8c8 --- /dev/null +++ b/.gitea/workflows/cicd.yaml @@ -0,0 +1,44 @@ +name: Build and publish +run-name: ${{ gitea.actor }} is runs ci pipeline +on: + push: + branches: + - master + +jobs: + docker: + runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + config-inline: | + [registry."git.bhasher.com"] + http = true + insecure = true + + - name: Login + uses: docker/login-action@v2 + with: + registry: git.bhasher.com + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and push + uses: docker/build-push-action@v5 + with: + push: true + platforms: | + linux/amd64 + linux/arm64 + tags: | + git.bhasher.com/bhasher/tg2:latest + + # - name: Deploy + # run: | + # curl -X POST https://portainer.bxl.bhasher.com/api/webhooks/