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 933deb9 commit a896596
Showing 1 changed file with 44 additions and 45 deletions.
89 changes: 44 additions & 45 deletions .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,55 @@
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:
checkout-repo:
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}}

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
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
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


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 a896596

Please sign in to comment.