Skip to content

Commit a496036

Browse files
authored
Merge pull request #565 from dundring/deploy-to-dev-on-push-to-main
Add deployment to dev on push to main
2 parents c11da01 + d70a351 commit a496036

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/build-and-push.yaml renamed to .github/workflows/build-and-push-and-deploy.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
packages: write
1010

1111
jobs:
12-
build:
12+
build-and-push-image:
1313
name: Build, tag and push image
1414
runs-on: ubuntu-latest
1515
outputs:
@@ -70,3 +70,15 @@ jobs:
7070
body: ${{ steps.changelog.outputs.changes }}
7171
draft: false
7272
prerelease: false
73+
74+
deploy-to-dev:
75+
name: Deploy to dev environment
76+
needs:
77+
- build-and-push-image
78+
runs-on: ubuntu-latest
79+
environment:
80+
name: dev
81+
url: https://trainer-dev.dundring.com
82+
steps:
83+
- name: Trigger Dokploy deployment
84+
run: curl -s "${{ vars.DEPLOY_WEBHOOK_URL }}"

0 commit comments

Comments
 (0)