-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.13 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Deploy
on:
workflow_dispatch:
push:
branches: [ dev ]
workflow_run:
workflows: [Build]
types: [completed]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: [ self-hosted, linux, ARM64 ]
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Download adr-extract
run: |
aws s3api get-object \
--bucket release \
--endpoint-url ${{ secrets.S3_ENDPOINT }} \
--key release/adr-extract-`git rev-parse --short $GITHUB_SHA` \
/opt/adr/adr-extract
chmod +x build/adr-extract
- name: Download adr-server
run: |
aws s3api get-object \
--bucket release \
--endpoint-url ${{ secrets.S3_ENDPOINT }} \
--key release/adr-server-`git rev-parse --short $GITHUB_SHA` \
/opt/adr/adr-server
chmod +x build/adr-server
- name: Extract
run: /opt/adr/adr-extract /opt/germany-latest.osm.pbf /opt/adr/germany.adr
- name: Restart Server
run: /bin/systemctl restart adr