Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1dc944f

Browse files
authored
Create deploy.yml
1 parent 76181a7 commit 1dc944f

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Deploy the Site
2+
3+
# Controls when the action will run. Triggers the workflow on push or pull request
4+
# events but only for the mainline branch
5+
on:
6+
push:
7+
branches: [ mainline ]
8+
9+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
10+
jobs:
11+
# This workflow contains a single job called "build"
12+
build:
13+
# The type of runner that the job will run on
14+
runs-on: ubuntu-latest
15+
# container: pzelnip/codependentcodrbase:latest
16+
env:
17+
DOCKER_USERNAME: pzelnip
18+
19+
steps:
20+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21+
- uses: actions/checkout@v2
22+
23+
# Runs a single command using the runners shell
24+
- name: Run tests
25+
shell: 'script -q -e -c "bash {0}"'
26+
run: echo "make deploy"
27+
env:
28+
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
29+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
30+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
31+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
33+
# USER: ???
34+
# HOST: ???

0 commit comments

Comments
 (0)