FossilRepo

fossilrepo / .github / workflows / deploy.yaml
Blame History Raw 39 lines
1
name: Deploy
2
3
on:
4
push:
5
branches: [main]
6
paths-ignore:
7
- 'docs/**'
8
- 'mkdocs.yml'
9
- '*.md'
10
11
concurrency:
12
group: deploy-${{ github.ref }}
13
cancel-in-progress: true
14
15
jobs:
16
ci:
17
uses: ./.github/workflows/ci.yaml
18
19
deploy:
20
needs: [ci]
21
runs-on: ubuntu-latest
22
23
steps:
24
- uses: aws-actions/configure-aws-credentials@v4
25
with:
26
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
27
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
28
aws-region: ${{ secrets.AWS_REGION }}
29
30
- name: Deploy via SSM
31
run: |
32
aws ssm send-command \
33
--instance-ids "${{ secrets.EC2_INSTANCE_ID }}" \
34
--document-name "AWS-RunShellScript" \
35
--parameters 'commands=["fossilrepo-deploy"]' \
36
--timeout-seconds 300 \
37
--output text
38
echo "Deploy sent"
39

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button