diff --git a/.drone.yml b/.drone.yml index 53c9304..664367b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,13 +1,9 @@ kind: pipeline -type: vm name: testing -pool: - use: ubuntu - platform: os: linux - arch: amd64 + arch: arm64 steps: - name: test @@ -32,58 +28,6 @@ volumes: --- -kind: pipeline -type: vm -name: linux-amd64 -platform: - os: linux - arch: amd64 -pool: - use: ubuntu - -steps: - - name: environment - image: golang:1.16 - pull: always - environment: - CGO_ENABLED: "0" - commands: - - go version - - go env - - name: build - image: golang:1.16 - environment: - CGO_ENABLED: "0" - commands: - - go build -o release/linux/amd64/drone-runner-docker - - name: publish - image: plugins/docker - pull: if-not-exists - settings: - repo: drone/drone-runner-docker - auto_tag: true - auto_tag_suffix: linux-amd64 - dockerfile: docker/Dockerfile.linux.amd64 - username: - from_secret: docker_username - password: - from_secret: docker_password - when: - ref: - - refs/heads/master - - refs/tags/* - -depends_on: - - testing - -trigger: - ref: - - refs/heads/master - - refs/tags/** - - refs/pull/** - ---- - kind: pipeline type: vm @@ -91,8 +35,6 @@ name: linux-arm64 platform: os: linux arch: arm64 -pool: - use: ubuntu_arm64 steps: - name: environment @@ -113,14 +55,12 @@ steps: image: plugins/docker pull: if-not-exists settings: - repo: drone/drone-runner-docker + repo: cr.wks/drone/drone-runner-docker + registry: cr.wks + insecure: true auto_tag: true auto_tag_suffix: linux-arm64 dockerfile: docker/Dockerfile.linux.arm64 - username: - from_secret: docker_username - password: - from_secret: docker_password when: ref: - refs/heads/master @@ -134,140 +74,3 @@ trigger: - refs/heads/master - refs/tags/** - refs/pull/** - ---- -kind: pipeline -type: vm -name: windows-1809 - -platform: - os: windows - arch: amd64 - -pool: - use: windows - -steps: - - name: environment - image: golang:1.16 - pull: always - environment: - CGO_ENABLED: "0" - commands: - - go version - - go env - - name: build - image: golang:1.16 - environment: - CGO_ENABLED: "0" - commands: - - go build -o release/windows/amd64/drone-runner-docker.exe - - name: docker - image: plugins/docker - settings: - dockerfile: docker/Dockerfile.windows.1809 - repo: drone/drone-runner-docker - username: - from_secret: docker_username - password: - from_secret: docker_password - auto_tag: true - auto_tag_suffix: windows-1809-amd64 - daemon_off: true - purge: false - when: - ref: - - refs/heads/master - - refs/tags/** - -depends_on: - - testing - -trigger: - ref: - - refs/heads/master - - refs/tags/** - - refs/pull/** - ---- -kind: pipeline -type: vm -name: windows-ltsc2022 - -platform: - os: windows - arch: amd64 - -pool: - use: windows-2022 - -steps: - - name: environment - image: golang:1.16 - pull: always - environment: - CGO_ENABLED: "0" - commands: - - go version - - go env - - name: build - image: golang:1.16 - environment: - CGO_ENABLED: "0" - commands: - - go build -o release/windows/amd64/drone-runner-docker.exe - - name: docker - image: plugins/docker - settings: - dockerfile: docker/Dockerfile.windows.ltsc2022 - repo: drone/drone-runner-docker - username: - from_secret: docker_username - password: - from_secret: docker_password - auto_tag: true - auto_tag_suffix: windows-ltsc2022-amd64 - daemon_off: true - purge: false - when: - ref: - - refs/heads/master - - refs/tags/** - -depends_on: - - testing - -trigger: - ref: - - refs/heads/master - - refs/tags/** - - refs/pull/** - ---- - -kind: pipeline -type: docker -name: manifest - -steps: - - name: manifest - image: plugins/manifest - settings: - spec: docker/manifest.tmpl - auto_tag: true - ignore_missing: true - password: - from_secret: docker_password - username: - from_secret: docker_username - -depends_on: - - linux-amd64 - - linux-arm64 - - windows-1809 - - windows-ltsc2022 - -trigger: - ref: - - refs/heads/master - - refs/tags/* diff --git a/scripts/build.sh b/scripts/build.sh index ddb5c3f..8aabb46 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -12,8 +12,8 @@ set -e set -x # linux - btw, I use amd64 arch linux... okay its manjaro... close enough -GOOS=linux GOARCH=amd64 go build -o release/linux/amd64/drone-runner-podman -# GOOS=linux GOARCH=arm64 go build -o release/linux/arm64/drone-runner-podman +#GOOS=linux GOARCH=amd64 go build -o release/linux/amd64/drone-runner-podman +GOOS=linux GOARCH=arm64 go build -o release/linux/arm64/drone-runner-podman # GOOS=linux GOARCH=arm go build -o release/linux/arm/drone-runner-podman # GOOS=linux GOARCH=ppc64le go build -o release/linux/ppc64le/drone-runner-podman