forked from Islandora-Devops/islandora-starter-site
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.3 KB
/
deploy-development.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
44
45
46
47
48
49
50
51
name: Deploy to development environment
on:
create:
push:
jobs:
create-environment:
if: github.event.ref_type == 'branch'
uses: libops/actions/.github/workflows/libops.yml@main
permissions:
contents: read
id-token: write
secrets: inherit
with:
branch: ${{ github.ref_name }}
ci-cd:
if: |
always() &&
github.event.ref_type != 'tag' &&
(needs.create-environment.result == 'success' ||
(needs.create-environment.result == 'skipped' && github.event.created == false))
needs: create-environment
uses: libops/actions/.github/workflows/deploy.yml@main
with:
environment: ${{ github.ref_name }}
permissions:
contents: read
id-token: write
secrets: inherit
push-docker:
if: always() && needs.ci-cd.result == 'success'
needs: [ci-cd]
uses: libops/actions/.github/workflows/build-push-sh.yml@main
with:
environment: ${{ github.ref_name }}
permissions:
contents: read
id-token: write
secrets: inherit
sync-new-environment:
needs: [create-environment, ci-cd]
uses: libops/actions/.github/workflows/sync-db.yml@main
permissions:
contents: read
id-token: write
with:
source: "development"
target: ${{ github.ref_name }}
secrets: inherit