Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Commit f84bd01

Browse files
committed
ci: switch to GitHub Actions
1 parent 360694a commit f84bd01

File tree

2 files changed

+48
-23
lines changed

2 files changed

+48
-23
lines changed

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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'

.travis.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)