-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 950 Bytes
/
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
43
name: Deploy
on:
push:
branches: ['main']
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
actions: write
contents: read
env:
EARTHLY_VERSION: v0.8.12
EARTHLY_TOKEN: ${{ secrets.EARTHLY_TOKEN }}
EARTHLY_ORG: ${{ secrets.EARTHLY_ORG }}
EARTHLY_SATELLITE: ${{ secrets.EARTHLY_SATELLITE }}
EARTHLY_CI: true
GITHUB_ACTIONS: true # Better earthly outputs in github actions
FORCE_COLOR: 1
jobs:
deploy:
name: Deploy
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- name: Install earthly
uses: earthly/actions-setup@v1
with:
version: ${{ env.EARTHLY_VERSION }}
- name: Checkout
uses: actions/checkout@v3
- name: Deploy
run:
earthly --allow-privileged --secret FLY_API_TOKEN +ci-deploy --COMMIT_SHA=${{ github.sha }}
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}