mirror of
https://github.com/azaion/flights.git
synced 2026-04-23 02:56:32 +00:00
b7ac1fd0a7
- Introduce a matrix for building on both linux/arm64 and linux/amd64 platforms. - Update image tagging to include platform-specific tags for better versioning. - Enhance the CI configuration for improved build clarity and organization.
26 lines
450 B
YAML
26 lines
450 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/flights
|
|
tags:
|
|
- "${CI_COMMIT_BRANCH}-${TAG}"
|
|
- "${CI_COMMIT_SHA:0:8}-${TAG}"
|
|
insecure: true
|