This repository was archived by the owner on Mar 14, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +48
-23
lines changed Expand file tree Collapse file tree 2 files changed +48
-23
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on :
3
+ push : {}
4
+ pull_request : {}
5
+ schedule :
6
+ - cron : " 0 12 * * 1" # Every Monday at 12:00 UTC
7
+
8
+ env :
9
+ AWS_ACCESS_KEY_ID : AKIA46X5W6CZIFIMIHXE
10
+
11
+ jobs :
12
+ ci :
13
+ name : CI
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Checkout the source code
17
+ uses : actions/checkout@v2
18
+ with :
19
+ fetch-depth : 1
20
+
21
+ - name : Use Python 3.x
22
+ uses : actions/setup-python@v1
23
+ with :
24
+ python-version : ' 3.x'
25
+
26
+ - name : Install highfive
27
+ run : pip install .
28
+
29
+ - name : Install test requiremens
30
+ run : pip install -r test-requirements.txt
31
+
32
+ - name : Run the test suite
33
+ run : pytest
34
+
35
+ - name : Build the Docker container
36
+ run : docker build -t highfive .
37
+
38
+ - name : Deploy to production
39
+ uses : rust-lang/simpleinfra/github-actions/upload-docker-image@master
40
+ with :
41
+ image : highfive
42
+ repository : rust-highfive
43
+ region : us-west-1
44
+ redeploy_ecs_cluster : rust-ecs-prod
45
+ redeploy_ecs_service : highfive
46
+ aws_access_key_id : " ${{ env.AWS_ACCESS_KEY_ID }}"
47
+ aws_secret_access_key : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ACCESS_KEY_ID)] }}"
48
+ if : github.ref == 'master'
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments