diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..7e9bfc0 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,20 @@ +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 + - arch: amd64 + tag: amd64 + steps: + - uses: actions/checkout@v4 + - run: | + docker build -f Dockerfile -t localhost:5000/loader:${{ github.ref_name }}-${{ matrix.tag }} . + docker push localhost:5000/loader:${{ github.ref_name }}-${{ matrix.tag }} diff --git a/.woodpecker.yml b/.woodpecker.yml deleted file mode 100644 index c891a21..0000000 --- a/.woodpecker.yml +++ /dev/null @@ -1,25 +0,0 @@ -when: - branch: [stage, main] - event: push - -matrix: - include: - - PLATFORM: linux/arm64 - TAG: arm - - PLATFORM: linux/amd64 - TAG: amd64 - -labels: - platform: ${PLATFORM} - -steps: - - name: build-and-push - image: plugins/docker - settings: - dockerfile: Dockerfile - context: . - repo: registry:5000/loader - tags: - - "${CI_COMMIT_BRANCH}-${TAG}" - - "${CI_COMMIT_SHA:0:8}-${TAG}" - insecure: true