forked from lucimobility/luci-ros2-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5edd241
commit 933deb9
Showing
1 changed file
with
45 additions
and
35 deletions.
There are no files selected for viewing
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
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 | ||
|
||
|