File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This is a basic workflow to help you get started with Actions
2+
3+ name : Deploy To Site
4+
5+ # Controls when the action will run.
6+ on :
7+ # Triggers the workflow on push or pull request events but only for the master branch
8+ push :
9+ branches : [ master, next ]
10+
11+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
12+ jobs :
13+ # This workflow contains a single job called "build"
14+ build :
15+ # The type of runner that the job will run on
16+ runs-on : ubuntu-latest
17+
18+ # Steps represent a sequence of tasks that will be executed as part of the job
19+ steps :
20+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21+ - uses : actions/checkout@v4
22+ - id : vars
23+ run : echo ::set-output name=short_ref::${GITHUB_REF#refs/*/}
24+
25+ - uses : actions/setup-node@v4
26+ with :
27+ node-version : ' 18.19.0'
28+
29+ - run : yarn install
30+ - run : yarn build
31+
32+ - uses : docker/setup-buildx-action@v1
33+ - uses : docker/login-action@v1
34+ with :
35+ username : ${{ secrets.REGISTRY_USERNAME }}
36+ password : ${{ secrets.REGISTRY_TOKEN }}
37+ registry : registry.webix.io
38+ - uses : docker/build-push-action@v2
39+ with :
40+ context : .
41+ push : true
42+ tags : registry.webix.io/booking-docs-alt:${{ steps.vars.outputs.short_ref }}
43+
44+ - run : curl "https://docs.dhtmlx.com/hooks/restart-docker?token=${{ secrets.RESTART_TOKEN }}&project=docs-booking-alt-${{ steps.vars.outputs.short_ref }}"
You can’t perform that action at this time.
0 commit comments