-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (31 loc) · 1.14 KB
/
release_workflow.yml
File metadata and controls
36 lines (31 loc) · 1.14 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
name: Publish to MobiledgeX Registry & Deploy app
on:
release:
types: [published]
jobs:
push_to_registry:
name: Publish to MobiledgeX Registry & Deploy app
runs-on: ubuntu-latest
steps:
- name: Check out the repo
id: check-out-repo
uses: actions/checkout@v2
- name: Get release version
id: get_release_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Push Image to MobiledgeX Docker Registery (Gitlab)
id: mobiledgex-registery
uses: docker/build-push-action@v1
with:
username: ${{ secrets.MOBILEDGEX_SAMPLES_USERNAME }}
password: ${{ secrets.MOBILEDGEX_SAMPLES_PASSWORD }}
registry: docker.mobiledgex.net
repository: mobiledgex-samples/images/edge-multiplay
tags: ${{ steps.get_release_version.outputs.VERSION }}
- name: MobiledgeX Deploy
id: mobiledgex-deploy
uses: mobiledgex/deploy-app-action@v1.0
with:
setup: main
username: ${{ secrets.MOBILEDGEX_SAMPLES_USERNAME }}
password: ${{ secrets.MOBILEDGEX_SAMPLES_PASSWORD }}