From a4879d854ffe9db892641fe787dc41017e9617eb Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 2 Sep 2022 17:36:47 +0000 Subject: [PATCH] github-actions: added rc release --- .github/workflows/release-candidate.yml | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/release-candidate.yml diff --git a/.github/workflows/release-candidate.yml b/.github/workflows/release-candidate.yml new file mode 100644 index 000000000..8bb1179ab --- /dev/null +++ b/.github/workflows/release-candidate.yml @@ -0,0 +1,39 @@ +name: release-candidate + +on: + release: + types: [prereleased] + +jobs: + making-something-cool: + runs-on: ubuntu-latest + 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/npm-get-version-action@v1.2.3 + id: package-version + - name: Build and push + uses: docker/build-push-action@v2 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: coollabsio/coolify:${{github.event.release.name}} + cache-from: type=registry,ref=coollabsio/coolify:buildcache-rc + cache-to: type=registry,ref=coollabsio/coolify:buildcache-rc,mode=max + - uses: sarisia/actions-status-discord@v1 + if: always() + with: + webhook: ${{ secrets.DISCORD_WEBHOOK_PROD_RELEASE_CHANNEL }}