diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..5d087c4 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,22 @@ +name: build +on: + push: + branches: [stage, main] + workflow_dispatch: +jobs: + build: + runs-on: [self-hosted, linux, "${{ matrix.arch }}"] + strategy: + matrix: + include: + - arch: arm64 + tag: arm + dockerfile: Dockerfile.jetson + - arch: amd64 + tag: amd64 + dockerfile: Dockerfile + steps: + - uses: actions/checkout@v4 + - run: | + docker build -f ${{ matrix.dockerfile }} -t localhost:5000/detections:${{ github.ref_name }}-${{ matrix.tag }} . + docker push localhost:5000/detections:${{ github.ref_name }}-${{ matrix.tag }} diff --git a/.woodpecker.yml b/.woodpecker.yml deleted file mode 100644 index 98e0c3a..0000000 --- a/.woodpecker.yml +++ /dev/null @@ -1,27 +0,0 @@ -when: - branch: [stage, main] - event: push - -matrix: - include: - - PLATFORM: linux/arm64 - TAG: arm - DOCKERFILE: Dockerfile.jetson - - PLATFORM: linux/amd64 - TAG: amd64 - DOCKERFILE: Dockerfile - -labels: - platform: ${PLATFORM} - -steps: - - name: build-and-push - image: plugins/docker - settings: - dockerfile: ${DOCKERFILE} - context: . - repo: registry:5000/detections - tags: - - "${CI_COMMIT_BRANCH}-${TAG}" - - "${CI_COMMIT_SHA:0:8}-${TAG}" - insecure: true