From 45b0f791bbf47f5c23a398623d0683b5c863689a Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 11 Oct 2022 10:54:22 +0200 Subject: [PATCH] ci: update staging release --- .github/workflows/staging-release.yml | 38 +++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/.github/workflows/staging-release.yml b/.github/workflows/staging-release.yml index 7a5e5474f..b8b05da44 100644 --- a/.github/workflows/staging-release.yml +++ b/.github/workflows/staging-release.yml @@ -6,7 +6,7 @@ on: - next jobs: - arm64-making-something-cool: + arm64: runs-on: [self-hosted, arm64] steps: - name: Checkout @@ -34,7 +34,7 @@ jobs: tags: coollabsio/coolify:next-arm64 cache-from: type=registry,ref=coollabsio/coolify:buildcache-next-arm64 cache-to: type=registry,ref=coollabsio/coolify:buildcache-next-arm64,mode=max - amd64-making-something-cool: + amd64: runs-on: ubuntu-latest steps: - name: Checkout @@ -62,9 +62,37 @@ jobs: tags: coollabsio/coolify:next-amd64,coollabsio/coolify:next-test cache-from: type=registry,ref=coollabsio/coolify:buildcache-next-amd64 cache-to: type=registry,ref=coollabsio/coolify:buildcache-next-amd64,mode=max - merge-manifest-to-be-cool: + aarch64: + runs-on: [self-hosted, arm64] + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + ref: "next" + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Login to DockerHub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Get current package version + uses: martinbeentjes/npm-get-version-action@v1.2.3 + id: package-version + - name: Build and push + uses: docker/build-push-action@v3 + with: + context: . + platforms: linux/aarch64 + push: true + tags: coollabsio/coolify:next-aarch64,coollabsio/coolify:next-test + cache-from: type=registry,ref=coollabsio/coolify:buildcache-next-aarch64 + cache-to: type=registry,ref=coollabsio/coolify:buildcache-next-aarch64,mode=max + merge-manifest: runs-on: ubuntu-latest - needs: [arm64-making-something-cool, amd64-making-something-cool] + needs: [arm64, amd64, aarch64] steps: - name: Checkout uses: actions/checkout@v3 @@ -79,7 +107,7 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Create & publish manifest run: | - docker manifest create coollabsio/coolify:next --amend coollabsio/coolify:next-amd64 --amend coollabsio/coolify:next-arm64 + docker manifest create coollabsio/coolify:next --amend coollabsio/coolify:next-amd64 --amend coollabsio/coolify:next-arm64 --amend coollabsio/coolify:next-aarch64 docker manifest push coollabsio/coolify:next - uses: sarisia/actions-status-discord@v1 if: always()