mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 05:16:29 +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 src/Dockerfile -t localhost:5000/annotations:${{ github.ref_name }}-${{ matrix.tag }} src/
|
||||
docker push localhost:5000/annotations:${{ 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 src/Dockerfile -t localhost:5000/annotations:${CI_COMMIT_BRANCH}-arm src/
|
||||
- docker push localhost:5000/annotations:${CI_COMMIT_BRANCH}-arm
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
Reference in New Issue
Block a user