Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

test

Andras Bacsaie6d72e9f870f
diff --git a/.github/workflows/proudction-release-test.yml b/.github/workflows/proudction-release-test.yml
new file mode 100644
index 0000000000..470b388516
--- /dev/null
+++ b/.github/workflows/proudction-release-test.yml
@@ -0,0 +1,40 @@
+name: production-release-test
+
+on:
+ release:
+ types: [prereleased]
+
+env:
+ REGISTRY: ghcr.io
+ IMAGE_NAME: "coollabsio/coolify-test"
+
+jobs:
+ amd64:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Set up QEMU
+ uses: docker/setup-qemu-action@v2
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v2
+ - name: Login to ghcr.io
+ uses: docker/login-action@v2
+ with:
+ registry: ${{ env.REGISTRY }}
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+ - name: Extract metadata
+ id: meta
+ uses: docker/metadata-action@v4
+ with:
+ images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
+ - name: Build and push
+ uses: docker/build-push-action@v3
+ with:
+ context: .
+ platforms: linux/amd64
+ push: true
+ tags: ${{ steps.meta.outputs.tags }}
+ labels: ${{ steps.meta.outputs.labels }}
+
\ No newline at end of file
diff --git a/.github/workflows/staging-release-dockerhub.yml b/.github/workflows/staging-release-dockerhub.yml
new file mode 100644
index 0000000000..71847aeba6
--- /dev/null
+++ b/.github/workflows/staging-release-dockerhub.yml
@@ -0,0 +1,92 @@
+name: staging-release
+
+on:
+ push:
+ paths:
+ - "**"
+ - "!others/fluentbit"
+ - "!others/pocketbase"
+ - "!.github/workflows/fluent-bit-release.yml"
+ - "!.github/workflows/pocketbase-release.yml"
+ branches:
+ - "not-existing-branch"
+
+jobs:
+ arm64:
+ runs-on: [self-hosted, arm64]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ with:
+ ref: "next"
+ - name: Set up QEMU
+ uses: docker/setup-qemu-action@v1
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v1
+ - name: Login to DockerHub
+ uses: docker/login-action@v1
+ with:
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
+ - name: Get current package version
+ uses: martinbeentjes/[email protected]
+ id: package-version
+ - name: Build and push
+ uses: docker/build-push-action@v2
+ with:
+ context: .
+ platforms: linux/arm64
+ push: true
+ 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:
+ runs-on: ubuntu-latest
+ 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/[email protected]
+ id: package-version
+ - name: Build and push
+ uses: docker/build-push-action@v3
+ with:
+ context: .
+ platforms: linux/amd64
+ push: true
+ tags: coollabsio/coolify:next
+ cache-from: type=registry,ref=coollabsio/coolify:buildcache-next-amd64
+ cache-to: type=registry,ref=coollabsio/coolify:buildcache-next-amd64,mode=max
+ merge-manifest:
+ runs-on: ubuntu-latest
+ needs: [arm64, amd64]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - 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: Create & publish manifest
+ run: |
+ docker buildx imagetools create --append coollabsio/coolify:next-arm64 --tag coollabsio/coolify:next
+ - uses: sarisia/actions-status-discord@v1
+ if: always()
+ with:
+ webhook: ${{ secrets.DISCORD_WEBHOOK_DEV_RELEASE_CHANNEL }}
diff --git a/.github/workflows/staging-release-ghcr.yml b/.github/workflows/staging-release-ghcr.yml
deleted file mode 100644
index 19e3e7b2f0..0000000000
--- a/.github/workflows/staging-release-ghcr.yml
+++ /dev/null
@@ -1,105 +0,0 @@
-name: staging-release-ghcr
-
-on:
- push:
- paths:
- - "**"
- - "!others/fluentbit"
- - "!others/pocketbase"
- - "!.github/workflows/fluent-bit-release.yml"
- - "!.github/workflows/pocketbase-release.yml"
- branches:
- - ghcr
-env:
- REGISTRY: ghcr.io
- IMAGE_NAME: "coollabsio/coolify-test"
-
-jobs:
- amd64:
- runs-on: ubuntu-latest
- 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:
- registry: ${{ env.REGISTRY }}
- username: ${{ github.actor }}
- password: ${{ secrets.GITHUB_TOKEN }}
- - name: Extract metadata (tags, labels) for Docker
- id: meta
- uses: docker/metadata-action@v4
- with:
- images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- - name: Build and push
- uses: docker/build-push-action@v3
- with:
- context: .
- platforms: linux/amd64
- push: true
- tags: ${{ steps.meta.outputs.tags }}
- labels: ${{ steps.meta.outputs.labels }}
- arm64:
- 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:
- registry: ${{ env.REGISTRY }}
- username: ${{ github.actor }}
- password: ${{ secrets.GITHUB_TOKEN }}
- - name: Extract metadata (tags, labels) for Docker
- id: meta
- uses: docker/metadata-action@v4
- with:
- images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- - name: Build and push
- uses: docker/build-push-action@v3
- with:
- context: .
- platforms: linux/arm64
- push: true
- tags: ${{ steps.meta.outputs.tags }}-arm64
- labels: ${{ steps.meta.outputs.labels }}
- merge-manifest:
- runs-on: ubuntu-latest
- needs: [amd64, arm64]
- steps:
- - name: Checkout
- uses: actions/checkout@v3
- - 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:
- registry: ${{ env.REGISTRY }}
- username: ${{ github.actor }}
- password: ${{ secrets.GITHUB_TOKEN }}
- - name: Extract metadata (tags, labels) for Docker
- id: meta
- uses: docker/metadata-action@v4
- with:
- images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- - name: Create & publish manifest
- run: |
- docker buildx imagetools create --append ${{ steps.meta.outputs.tags }}-arm64 --tag ${{ steps.meta.outputs.tags }}
- # - uses: sarisia/actions-status-discord@v1
- # if: always()
- # with:
- # webhook: ${{ secrets.DISCORD_WEBHOOK_DEV_RELEASE_CHANNEL }}
diff --git a/.github/workflows/staging-release.yml b/.github/workflows/staging-release.yml
index e52db63daa..fd86fb2349 100644
--- a/.github/workflows/staging-release.yml
+++ b/.github/workflows/staging-release.yml
@@ -9,39 +9,44 @@ on:
- "!.github/workflows/fluent-bit-release.yml"
- "!.github/workflows/pocketbase-release.yml"
branches:
- - next
+ - "not-existing-branch" # should be !main
+env:
+ REGISTRY: ghcr.io
+ IMAGE_NAME: "coollabsio/coolify"
jobs:
- arm64:
- runs-on: [self-hosted, arm64]
+ amd64:
+ runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: "next"
- name: Set up QEMU
- uses: docker/setup-qemu-action@v1
+ uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v1
+ uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
- uses: docker/login-action@v1
+ uses: docker/login-action@v2
+ with:
+ registry: ${{ env.REGISTRY }}
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+ - name: Extract metadata (tags, labels) for Docker
+ id: meta
+ uses: docker/metadata-action@v4
with:
- username: ${{ secrets.DOCKERHUB_USERNAME }}
- password: ${{ secrets.DOCKERHUB_TOKEN }}
- - name: Get current package version
- uses: martinbeentjes/[email protected]
- id: package-version
+ images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push
- uses: docker/build-push-action@v2
+ uses: docker/build-push-action@v3
with:
context: .
- platforms: linux/arm64
+ platforms: linux/amd64
push: true
- 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:
- runs-on: ubuntu-latest
+ tags: ${{ steps.meta.outputs.tags }}
+ labels: ${{ steps.meta.outputs.labels }}
+ arm64:
+ runs-on: [self-hosted, arm64]
steps:
- name: Checkout
uses: actions/checkout@v3
@@ -54,23 +59,25 @@ jobs:
- 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/[email protected]
- id: package-version
+ registry: ${{ env.REGISTRY }}
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+ - name: Extract metadata (tags, labels) for Docker
+ id: meta
+ uses: docker/metadata-action@v4
+ with:
+ images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
- platforms: linux/amd64
+ platforms: linux/arm64
push: true
- tags: coollabsio/coolify:next
- cache-from: type=registry,ref=coollabsio/coolify:buildcache-next-amd64
- cache-to: type=registry,ref=coollabsio/coolify:buildcache-next-amd64,mode=max
+ tags: ${{ steps.meta.outputs.tags }}-arm64
+ labels: ${{ steps.meta.outputs.labels }}
merge-manifest:
runs-on: ubuntu-latest
- needs: [arm64, amd64]
+ needs: [amd64, arm64]
steps:
- name: Checkout
uses: actions/checkout@v3
@@ -81,11 +88,17 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v2
with:
- username: ${{ secrets.DOCKERHUB_USERNAME }}
- password: ${{ secrets.DOCKERHUB_TOKEN }}
+ registry: ${{ env.REGISTRY }}
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+ - name: Extract metadata (tags, labels) for Docker
+ id: meta
+ uses: docker/metadata-action@v4
+ with:
+ images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Create & publish manifest
run: |
- docker buildx imagetools create --append coollabsio/coolify:next-arm64 --tag coollabsio/coolify:next
+ docker buildx imagetools create --append ${{ steps.meta.outputs.tags }}-arm64 --tag ${{ steps.meta.outputs.tags }}
- uses: sarisia/actions-status-discord@v1
if: always()
with: