diff --git a/.woodpecker.yml b/.woodpecker.yml deleted file mode 100644 index f233c45..0000000 --- a/.woodpecker.yml +++ /dev/null @@ -1,25 +0,0 @@ -when: - branch: [dev, 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: SatelliteProvider.Api/Dockerfile - context: . - repo: registry:5000/satellite-provider - tags: - - "${CI_COMMIT_BRANCH}-${TAG}" - - "${CI_COMMIT_SHA:0:8}-${TAG}" - insecure: true diff --git a/.woodpecker/build-arm.yml b/.woodpecker/build-arm.yml new file mode 100644 index 0000000..f95f898 --- /dev/null +++ b/.woodpecker/build-arm.yml @@ -0,0 +1,14 @@ +when: + branch: [dev, stage, main] + +labels: + platform: arm64 + +steps: + - name: build-push + image: docker + commands: + - docker build -f SatelliteProvider.Api/Dockerfile -t localhost:5000/satellite-provider:${CI_COMMIT_BRANCH}-arm . + - docker push localhost:5000/satellite-provider:${CI_COMMIT_BRANCH}-arm + volumes: + - /var/run/docker.sock:/var/run/docker.sock