-
Notifications
You must be signed in to change notification settings - Fork 6
34 lines (27 loc) · 930 Bytes
/
main.yml
File metadata and controls
34 lines (27 loc) · 930 Bytes
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
on:
release:
types: [published]
jobs:
deploy_to_main:
name: Deploy app to the MobiledgeX main setup
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to Gitlab
uses: docker/build-push-action@v1
with:
username: ${{ secrets.MOBILEDGEX_USERNAME }}
password: ${{ secrets.MOBILEDGEX_PASSWORD }}
registry: docker.mobiledgex.net
repository: venkydev/images/github-deploy
tag_with_ref: true
- name: Deploy to MobiledgeX
id: deploy
uses: mobiledgex/deploy-app-action@v1.1
with:
setup: main
username: ${{ secrets.MOBILEDGEX_USERNAME }}
password: ${{ secrets.MOBILEDGEX_PASSWORD }}
- name: Print output
run: echo "Image ${{ steps.deploy.outputs.image }}, Deployments ${{ steps.deploy.outputs.deployments }}"