mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 22:46:33 +00:00
Switch to Woodpecker CI
Made-with: Cursor
This commit is contained in:
@@ -1,20 +0,0 @@
|
|||||||
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 }}
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
when:
|
||||||
|
branch: [stage, main]
|
||||||
|
|
||||||
|
labels:
|
||||||
|
platform: arm64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build-push
|
||||||
|
image: docker
|
||||||
|
commands:
|
||||||
|
- docker build -f Dockerfile -t localhost:5000/admin:${CI_COMMIT_BRANCH}-arm .
|
||||||
|
- docker push localhost:5000/admin:${CI_COMMIT_BRANCH}-arm
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
Reference in New Issue
Block a user