-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 1.02 KB
/
pullpreview.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
name: PullPreview
on:
pull_request:
types: [ labeled, unlabeled, synchronize, closed, reopened ]
jobs:
deploy:
permissions:
contents: read # to fetch code (actions/checkout)
deployments: write # to delete deployments
pull-requests: write # to remove labels
statuses: write # to create commit status
id-token: write # This is required for AWS credentials
name: deploy
runs-on: ubuntu-latest
timeout-minutes: 30
environment: 'dev'
steps:
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT }}:role/GithubCopilotDeploy
role-session-name: FUNDING_SERVICE_DESIGN_FUND_APPLICATION_BUILDER_PULLPREVIEW
aws-region: eu-west-2
- uses: actions/checkout@v2
- uses: pullpreview/[email protected]
with:
compose_files: docker-compose.pullpreview.yml
ports: 8080/tcp
default_port: 8080
admins: gidsg