mirror of
https://github.com/caprover/caprover
synced 2025-10-30 10:07:01 +00:00
Some checks failed
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled
35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
name: Build and push the release image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- release
|
|
|
|
jobs:
|
|
run-pre-checks:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 22
|
|
- run: |
|
|
sudo bash -c "mkdir /captain && chown -R `whoami` /captain"
|
|
npm ci
|
|
npm run build
|
|
npm run lint
|
|
npm run formatter
|
|
npm run test
|
|
build-publish-docker-hub:
|
|
needs: run-pre-checks
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: azure/docker-login@v1
|
|
with:
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
- uses: actions/checkout@v1
|
|
- name: Build and Push Release to DockerHub
|
|
shell: bash
|
|
run: ./dev-scripts/build_and_push_release.sh
|