mirror of
https://github.com/plankanban/planka.git
synced 2025-08-10 07:55:27 +02:00
commit
e40cd8d2f1
4 changed files with 49 additions and 128 deletions
|
@ -1,57 +1,57 @@
|
||||||
name: Build and publish release package
|
# name: Build and publish release package
|
||||||
|
|
||||||
on:
|
# on:
|
||||||
release:
|
# release:
|
||||||
types: [created]
|
# types: [created]
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
# jobs:
|
||||||
build-and-publish-release-package:
|
# build-and-publish-release-package:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v3
|
# - uses: actions/setup-node@v3
|
||||||
with:
|
# with:
|
||||||
node-version: '18'
|
# node-version: '18'
|
||||||
cache: 'npm'
|
# cache: 'npm'
|
||||||
|
|
||||||
- name: Workflow install pnpm
|
# - name: Workflow install pnpm
|
||||||
run: npm install pnpm -g
|
# run: npm install pnpm -g
|
||||||
|
|
||||||
- name: Client install dependencies
|
# - name: Client install dependencies
|
||||||
run: pnpm install
|
# run: pnpm install
|
||||||
|
|
||||||
- name: Server install dependencies
|
# - name: Server install dependencies
|
||||||
run: pnpm install
|
# run: pnpm install
|
||||||
|
|
||||||
- name: Server include into dist
|
# - name: Server include into dist
|
||||||
run: mv server/ dist/
|
# run: mv server/ dist/
|
||||||
|
|
||||||
- name: Client build production
|
# - name: Client build production
|
||||||
run: |
|
# run: |
|
||||||
npm run build
|
# npm run build
|
||||||
working-directory: ./client
|
# working-directory: ./client
|
||||||
|
|
||||||
- name: Client include into dist
|
# - name: Client include into dist
|
||||||
run: |
|
# run: |
|
||||||
mv build/index.html ../dist/views/index.ejs
|
# mv build/index.html ../dist/views/index.ejs
|
||||||
mv build/* ../dist/public/
|
# mv build/* ../dist/public/
|
||||||
working-directory: ./client
|
# working-directory: ./client
|
||||||
|
|
||||||
- name: Dist include README.md SECURITY.md LICENSE start.sh
|
# - name: Dist include README.md SECURITY.md LICENSE start.sh
|
||||||
run: mv README.md SECURITY.md LICENSE start.sh dist/
|
# run: mv README.md SECURITY.md LICENSE start.sh dist/
|
||||||
|
|
||||||
- name: Dist Remove node modules
|
# - name: Dist Remove node modules
|
||||||
run: rm -R dist/node_modules
|
# run: rm -R dist/node_modules
|
||||||
|
|
||||||
- name: Dist create .zip file
|
# - name: Dist create .zip file
|
||||||
run: |
|
# run: |
|
||||||
mv dist/ planka/
|
# mv dist/ planka/
|
||||||
zip -r planka-prebuild-${{ github.event.release.tag_name }}.zip planka
|
# zip -r planka-prebuild-${{ github.event.release.tag_name }}.zip planka
|
||||||
|
|
||||||
- name: Dist upload assets
|
# - name: Dist upload assets
|
||||||
run: |
|
# run: |
|
||||||
gh release upload ${{ github.event.release.tag_name }} planka-prebuild-${{ github.event.release.tag_name }}.zip
|
# gh release upload ${{ github.event.release.tag_name }} planka-prebuild-${{ github.event.release.tag_name }}.zip
|
||||||
env:
|
# env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
# GH_TOKEN: ${{ github.token }}
|
||||||
|
|
|
@ -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 }}
|
|
|
@ -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
|
|
|
@ -26,12 +26,12 @@ jobs:
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Set version
|
# - name: Set version
|
||||||
uses: actions/github-script@v6
|
# uses: actions/github-script@v6
|
||||||
id: set-version
|
# id: set-version
|
||||||
with:
|
# with:
|
||||||
result-encoding: string
|
# result-encoding: string
|
||||||
script: return context.payload.release.tag_name.replace('v', '')
|
# script: return context.payload.release.tag_name.replace('v', '')
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
|
@ -41,4 +41,3 @@ jobs:
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/plankanban/planka:latest
|
ghcr.io/plankanban/planka:latest
|
||||||
ghcr.io/plankanban/planka:${{ steps.set-version.outputs.result }}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue