mirror of
https://github.com/azaion/loader.git
synced 2026-04-22 07:06:33 +00:00
ff5654aadd
Updated the .woodpecker.yml file to include a matrix for building on both linux/arm64 and linux/amd64 platforms. Modified the tagging format to append the platform tag to the commit branch and SHA for better identification of builds.
26 lines
449 B
YAML
26 lines
449 B
YAML
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
|