Create and Deploy Docker #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |