-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (46 loc) · 1.46 KB
/
Copy pathdeploy.yml
File metadata and controls
52 lines (46 loc) · 1.46 KB
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
44
45
46
47
48
49
50
51
52
name: Deploy
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
packages: write
env:
TLD: 'org'
environment: 'production'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Inspect files
run: ls -l dist/
- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
id: push
uses: docker/[email protected]
with:
file: Dockerfile
context: .
no-cache: true
push: true
#tags: ghcr.io/jaspervandenbosch/envisounds-org:latest
tags: ghcr.io/mkachlicka/envisounds-org:latest
- name: Deploy the app
uses: digitalocean/app_action/deploy@v2
env:
IMAGE_DIGEST: ${{ steps.push.outputs.digest }}
GHCR_CREDS: ${{ secrets.GHCR_CREDS }}
TLD: ${{ env.TLD }}
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
app_spec_location: .do/app.yml
print_build_logs: true
print_deploy_logs: true