mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 07:06:34 +00:00
Remove Woodpecker CI configuration file as multi-platform support is no longer needed.
This commit is contained in:
@@ -0,0 +1,20 @@
|
|||||||
|
name: build
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [stage, main]
|
||||||
|
workflow_dispatch:
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: [self-hosted, linux, "${{ matrix.arch }}"]
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- arch: arm64
|
||||||
|
tag: arm
|
||||||
|
- arch: amd64
|
||||||
|
tag: amd64
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- run: |
|
||||||
|
docker build -f Dockerfile -t localhost:5000/admin:${{ github.ref_name }}-${{ matrix.tag }} .
|
||||||
|
docker push localhost:5000/admin:${{ github.ref_name }}-${{ matrix.tag }}
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
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/admin
|
|
||||||
tags:
|
|
||||||
- "${CI_COMMIT_BRANCH}-${TAG}"
|
|
||||||
- "${CI_COMMIT_SHA:0:8}-${TAG}"
|
|
||||||
insecure: true
|
|
||||||
Reference in New Issue
Block a user