diff --git a/.gitea/workflows/linux_arm64_docker-release.yaml b/.gitea/workflows/linux_arm64_docker-release.yaml new file mode 100644 index 0000000..ca2eabf --- /dev/null +++ b/.gitea/workflows/linux_arm64_docker-release.yaml @@ -0,0 +1,32 @@ +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 }} \ No newline at end of file diff --git a/.gitea/workflows/linux_arm64_docker.yaml b/.gitea/workflows/linux_arm64_docker.yaml index b39bf81..eb7bbe4 100644 --- a/.gitea/workflows/linux_arm64_docker.yaml +++ b/.gitea/workflows/linux_arm64_docker.yaml @@ -30,38 +30,4 @@ jobs: name: CouchLog-Linux-ARM64-Docker-Image path: CouchLog-Linux-ARM64-Docker-Image.tar if-no-files-found: error - 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 }} \ No newline at end of file + retention-days: 1 \ No newline at end of file