Skip to content

Commit

Permalink
Squash
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-Prather committed Aug 16, 2023
1 parent 5edd241 commit 933deb9
Showing 1 changed file with 45 additions and 35 deletions.
80 changes: 45 additions & 35 deletions .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,56 @@
name: Create and Deploy Docker

on:
push:
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
push:
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_ARTIFACTORY_1: ${{secrets.artifactory_token}}
REPO: ${{github.event.repository.name}}
JF_ARTIFACTORY_1: ${{secrets.artifactory_token}}

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout SDK Branch
checkout-repo:
runs-on: ubuntu-latest
steps:
- name: Checkout SDK Branch
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
path: ${{env.REPO}}
ref: ${{ github.ref }}
path: ${{env.REPO}}

- name: Build and deploy dev
uses: jfrog/setup-jfrog-cli@v1
if: ${{ github.event.inputs.DEV }}
- run: |
cd ${{env.REPO}}
./build-and-deploy-dockers.sh -d
shell: bash
Build-and-deploy-dev:
runs-on: ubuntu-latest
needs: checkout-repo
steps:
- name: Build and deploy dev
uses: jfrog/setup-jfrog-cli@v1
if: ${{ github.event.inputs.DEV }}
run: |
cd ${{env.REPO}}
./build-and-deploy-dockers.sh -d
shell: bash

- name: Build and deploy release
if: ${{ github.event.inputs.RELEASE }}
uses: jfrog/setup-jfrog-cli@v1
- run: |
cd ${{env.REPO}}
./build-and-deploy-dockers.sh -r
shell: bash
Build-and-deploy-release:
runs-on: ubuntu-latest
needs: checkout-repo
steps:
- name: Build and deploy release
if: ${{ github.event.inputs.RELEASE }}
uses: jfrog/setup-jfrog-cli@v1
run: |
cd ${{env.REPO}}
./build-and-deploy-dockers.sh -r
shell: bash


0 comments on commit 933deb9

Please sign in to comment.