chore: added Release Pipeline for Linux-Arm64-Docker-Image
Some checks failed
Some checks failed
This commit is contained in:
@@ -6,7 +6,7 @@ on:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build-docker-linux-x64:
|
||||
build-docker-linux-arm64:
|
||||
runs-on: [self-hosted, linux, arm64, docker]
|
||||
steps:
|
||||
- name: Install packages
|
||||
@@ -30,4 +30,38 @@ jobs:
|
||||
name: CouchLog-Linux-ARM64-Docker-Image
|
||||
path: CouchLog-Linux-ARM64-Docker-Image.tar
|
||||
if-no-files-found: error
|
||||
retention-days: 1
|
||||
retention-days: 1
|
||||
|
||||
|
||||
name: Build Docker Linux ARM64 Release
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
build-docker-linux-arm64-release:
|
||||
runs-on: [self-hosted, linux, arm64, docker]
|
||||
steps:
|
||||
- name: Install packages
|
||||
run: apk add --no-cache git curl wget unzip bash nodejs npm docker
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build Linux ARM64 Docker Image
|
||||
run: docker build -t couchlog-linux-arm64 .
|
||||
|
||||
- name: Save Docker Image to Tar
|
||||
run: docker save -o CouchLog-Linux-ARM64-Docker-Image.tar couchlog-linux-arm64
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
files: CouchLog-Linux-ARM64-Docker-Image.tar
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user