diff --git a/.github/workflows/build-and push release-package.yml b/.github/workflows/build-and push release-package.yml index abfd1df5..0cc97e67 100644 --- a/.github/workflows/build-and push release-package.yml +++ b/.github/workflows/build-and push release-package.yml @@ -1,57 +1,57 @@ -name: Build and publish release package +# name: Build and publish release package -on: - release: - types: [created] +# on: +# release: +# types: [created] -jobs: - build-and-publish-release-package: - runs-on: ubuntu-latest +# jobs: +# build-and-publish-release-package: +# runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 - with: - node-version: '18' - cache: 'npm' +# steps: +# - uses: actions/checkout@v4 +# - uses: actions/setup-node@v3 +# with: +# node-version: '18' +# cache: 'npm' - - name: Workflow install pnpm - run: npm install pnpm -g +# - name: Workflow install pnpm +# run: npm install pnpm -g - - name: Client install dependencies - run: pnpm install +# - name: Client install dependencies +# run: pnpm install - - name: Server install dependencies - run: pnpm install +# - name: Server install dependencies +# run: pnpm install - - name: Server include into dist - run: mv server/ dist/ +# - name: Server include into dist +# run: mv server/ dist/ - - name: Client build production - run: | - npm run build - working-directory: ./client +# - name: Client build production +# run: | +# npm run build +# working-directory: ./client - - name: Client include into dist - run: | - mv build/index.html ../dist/views/index.ejs - mv build/* ../dist/public/ - working-directory: ./client +# - name: Client include into dist +# run: | +# mv build/index.html ../dist/views/index.ejs +# mv build/* ../dist/public/ +# working-directory: ./client - - name: Dist include README.md SECURITY.md LICENSE start.sh - run: mv README.md SECURITY.md LICENSE start.sh dist/ +# - name: Dist include README.md SECURITY.md LICENSE start.sh +# run: mv README.md SECURITY.md LICENSE start.sh dist/ - - name: Dist Remove node modules - run: rm -R dist/node_modules +# - name: Dist Remove node modules +# run: rm -R dist/node_modules - - name: Dist create .zip file - run: | - mv dist/ planka/ - zip -r planka-prebuild-${{ github.event.release.tag_name }}.zip planka +# - name: Dist create .zip file +# run: | +# mv dist/ planka/ +# zip -r planka-prebuild-${{ github.event.release.tag_name }}.zip planka - - name: Dist upload assets - run: | - gh release upload ${{ github.event.release.tag_name }} planka-prebuild-${{ github.event.release.tag_name }}.zip - env: - GH_TOKEN: ${{ github.token }} +# - name: Dist upload assets +# run: | +# gh release upload ${{ github.event.release.tag_name }} planka-prebuild-${{ github.event.release.tag_name }}.zip +# env: +# GH_TOKEN: ${{ github.token }} diff --git a/.github/workflows/build-and-push-docker-base-image.yml b/.github/workflows/build-and-push-docker-base-image.yml deleted file mode 100644 index 427435da..00000000 --- a/.github/workflows/build-and-push-docker-base-image.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Build and push Docker base image - -on: - push: - paths: - - ./Dockerfile.base - branches: - - master - workflow_dispatch: - -env: - ALPINE_VERSION: 3.16 - -jobs: - build-and-push-docker-base-image: - runs-on: self-hosted - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v4 - with: - context: . - platforms: linux/amd64,linux/arm64,linux/arm/v7 - file: Dockerfile.base - build-args: ALPINE_VERSION=${{ env.ALPINE_VERSION }} - push: true - tags: | - ghcr.io/plankanban/planka:base-latest - ghcr.io/plankanban/planka:base-${{ env.ALPINE_VERSION }} diff --git a/.github/workflows/build-and-push-docker-image-dev.yml b/.github/workflows/build-and-push-docker-image-dev.yml deleted file mode 100644 index 88027278..00000000 --- a/.github/workflows/build-and-push-docker-image-dev.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Build and push Docker DEV image - -on: - push: - branches: [master] - -jobs: - build-and-push-docker-image-dev: - runs-on: self-hosted - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v4 - with: - context: . - platforms: linux/amd64,linux/arm64,linux/arm/v7 - push: true - tags: | - ghcr.io/plankanban/planka:dev diff --git a/.github/workflows/build-and-push-docker-image.yml b/.github/workflows/build-and-push-docker-image.yml index 1dfa28aa..3b07f3ea 100644 --- a/.github/workflows/build-and-push-docker-image.yml +++ b/.github/workflows/build-and-push-docker-image.yml @@ -26,12 +26,12 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Set version - uses: actions/github-script@v6 - id: set-version - with: - result-encoding: string - script: return context.payload.release.tag_name.replace('v', '') + # - name: Set version + # uses: actions/github-script@v6 + # id: set-version + # with: + # result-encoding: string + # script: return context.payload.release.tag_name.replace('v', '') - name: Build and push uses: docker/build-push-action@v4 @@ -41,4 +41,3 @@ jobs: push: true tags: | ghcr.io/plankanban/planka:latest - ghcr.io/plankanban/planka:${{ steps.set-version.outputs.result }}