-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (49 loc) · 1.36 KB
/
deploy-docker.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
52
53
54
55
56
57
name: Create and Deploy Docker
on:
workflow_dispatch:
inputs:
DEV:
type: boolean
description: "If the DEV image should be build"
required: true
default: false
RELEASE:
type: boolean
description: "If the public RELEASE image should be build"
required: true
default: false
env:
REPO: ${{github.event.repository.name}}
JF_URL: ${{secrets.JF_URL}}
JF_ACCESS_TOKEN: ${{secrets.ARTIFACTORY_TOKEN}}
jobs:
Build-and-deploy-dev:
runs-on: ubuntu-latest
steps:
- uses: jfrog/setup-jfrog-cli@v3
- name: Checkout SDK Branch
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
path: ${{env.REPO}}
- name: Build and deploy dev
if: ${{ github.event.inputs.DEV == 'true'}}
run: |
cd ${{env.REPO}}
./build-and-deploy-dockers.sh -d
shell: bash
Build-and-deploy-release:
runs-on: ubuntu-latest
steps:
- uses: jfrog/setup-jfrog-cli@v3
- name: Checkout SDK Branch
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
path: ${{env.REPO}}
- name: Build and deploy release
if: ${{ github.event.inputs.RELEASE == 'true' }}
run: |
cd ${{env.REPO}}
./build-and-deploy-dockers.sh -r
shell: bash