Skip to content

Commit 37ba581

Browse files
authored
Merge pull request signalwire#2 from signalwire/feat-github-ci
Creating base workflow
2 parents 0691468 + 1c49124 commit 37ba581

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: SignalWire Docs
2+
3+
# Controls when the workflow will run
4+
on:
5+
# Triggers the workflow on push or pull request events but only for the main branch
6+
7+
push:
8+
branches:
9+
- main
10+
# paths:
11+
# - custom-path/**
12+
pull_request:
13+
branches:
14+
- main
15+
16+
# paths:
17+
# - custom-path/**
18+
19+
# Allows you to run this workflow manually from the Actions tab
20+
workflow_dispatch:
21+
22+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
23+
jobs:
24+
# This workflow contains a single job called "build"
25+
build:
26+
name: "Build/push & deploy to swarm"
27+
# The type of runner that the job will run on
28+
uses: signalwire/actions-template/.github/workflows/docker-bp.yml@c53f25701311044e264e448672d40cd67d56a7e7
29+
with:
30+
PROJECT_NAME: "freeswitch-docs"
31+
SWARM_SERVICE: "signalwire-docs_freeswitch-docs"
32+
PR_MESSAGE: false
33+
SWARM_DEPLOY: true
34+
secrets:
35+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
36+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
37+
ENDPOINTID: ${{ secrets.DOCS_ENDPOINT_ID }}
38+
PORTAINER_API_KEY: ${{ secrets.PORTAINER_API_KEY }}

0 commit comments

Comments
 (0)