diff --git a/.drone-manifest-hasher.yml b/.drone-manifest-hasher.yml new file mode 100644 index 0000000..1b4ef60 --- /dev/null +++ b/.drone-manifest-hasher.yml @@ -0,0 +1,22 @@ +image: nemunaire/hasher:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} +{{#if build.tags}} +tags: +{{#each build.tags}} + - {{this}} +{{/each}} +{{/if}} +manifests: + - image: nemunaire/hasher:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64 + platform: + architecture: amd64 + os: linux + - image: nemunaire/hasher:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64 + platform: + architecture: arm64 + os: linux + variant: v8 + - image: nemunaire/hasher:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm + platform: + architecture: arm + os: linux + variant: v7 diff --git a/.drone-manifest-rng.yml b/.drone-manifest-rng.yml new file mode 100644 index 0000000..0383219 --- /dev/null +++ b/.drone-manifest-rng.yml @@ -0,0 +1,22 @@ +image: nemunaire/rng:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} +{{#if build.tags}} +tags: +{{#each build.tags}} + - {{this}} +{{/each}} +{{/if}} +manifests: + - image: nemunaire/rng:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64 + platform: + architecture: amd64 + os: linux + - image: nemunaire/rng:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64 + platform: + architecture: arm64 + os: linux + variant: v8 + - image: nemunaire/rng:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm + platform: + architecture: arm + os: linux + variant: v7 diff --git a/.drone-manifest-worker.yml b/.drone-manifest-worker.yml new file mode 100644 index 0000000..20d0b05 --- /dev/null +++ b/.drone-manifest-worker.yml @@ -0,0 +1,22 @@ +image: nemunaire/worker:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} +{{#if build.tags}} +tags: +{{#each build.tags}} + - {{this}} +{{/each}} +{{/if}} +manifests: + - image: nemunaire/worker:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64 + platform: + architecture: amd64 + os: linux + - image: nemunaire/worker:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64 + platform: + architecture: arm64 + os: linux + variant: v8 + - image: nemunaire/worker:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm + platform: + architecture: arm + os: linux + variant: v7 diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..7984077 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,198 @@ +--- +kind: pipeline +type: docker +name: build-amd64 + +platform: + os: linux + arch: amd64 + +steps: +- name: deploy hasher + image: plugins/docker + settings: + repo: nemunaire/hasher + auto_tag: true + auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} + context: hasher + dockerfile: hasher/Dockerfile + username: + from_secret: docker_username + password: + from_secret: docker_password + +- name: deploy rng + image: plugins/docker + settings: + repo: nemunaire/rng + auto_tag: true + auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} + context: rng + dockerfile: rng/Dockerfile + username: + from_secret: docker_username + password: + from_secret: docker_password + +- name: deploy worker + image: plugins/docker + settings: + repo: nemunaire/worker + auto_tag: true + auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} + context: worker + dockerfile: worker/Dockerfile + username: + from_secret: docker_username + password: + from_secret: docker_password + +--- +kind: pipeline +type: docker +name: build-arm64 + +platform: + os: linux + arch: arm64 + +steps: + +steps: +- name: deploy hasher + image: plugins/docker + settings: + repo: nemunaire/hasher + auto_tag: true + auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} + context: hasher + dockerfile: hasher/Dockerfile + username: + from_secret: docker_username + password: + from_secret: docker_password + +- name: deploy rng + image: plugins/docker + settings: + repo: nemunaire/rng + auto_tag: true + auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} + context: rng + dockerfile: rng/Dockerfile + username: + from_secret: docker_username + password: + from_secret: docker_password + +- name: deploy worker + image: plugins/docker + settings: + repo: nemunaire/worker + auto_tag: true + auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} + context: worker + dockerfile: worker/Dockerfile + username: + from_secret: docker_username + password: + from_secret: docker_password + + +--- +kind: pipeline +type: docker +name: build-arm + +platform: + os: linux + arch: arm + +steps: + +steps: +- name: deploy hasher + image: plugins/docker + settings: + repo: nemunaire/hasher + auto_tag: true + auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} + context: hasher + dockerfile: hasher/Dockerfile + username: + from_secret: docker_username + password: + from_secret: docker_password + +- name: deploy rng + image: plugins/docker + settings: + repo: nemunaire/rng + auto_tag: true + auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} + context: rng + dockerfile: rng/Dockerfile + username: + from_secret: docker_username + password: + from_secret: docker_password + +- name: deploy worker + image: plugins/docker + settings: + repo: nemunaire/worker + auto_tag: true + auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} + context: worker + dockerfile: worker/Dockerfile + username: + from_secret: docker_username + password: + from_secret: docker_password + +--- +kind: pipeline +name: docker-manifest + +steps: +- name: publish hasher + image: plugins/manifest + settings: + auto_tag: true + ignore_missing: true + spec: .drone-manifest-hasher.yml + username: + from_secret: docker_username + password: + from_secret: docker_password + +- name: publish rng + image: plugins/manifest + settings: + auto_tag: true + ignore_missing: true + spec: .drone-manifest-rng.yml + username: + from_secret: docker_username + password: + from_secret: docker_password + +- name: publish worker + image: plugins/manifest + settings: + auto_tag: true + ignore_missing: true + spec: .drone-manifest-worker.yml + username: + from_secret: docker_username + password: + from_secret: docker_password + +trigger: + event: + - tag + +depends_on: +- build-amd64 +- build-arm64 +- build-arm