Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish Docker image

on:
workflow_dispatch:
inputs:
version:
description: Existing published release version (X.Y.Z)
required: true
type: string

permissions:
contents: read

jobs:
docker-publish:
uses: ROBOTIS-GIT/github_workflows/.github/workflows/docker-publish.yml@main
with:
image: robotis/robotis-applications
version: ${{ inputs.version }}
checkout_ref: jazzy
context: ./docker
dockerfile: ./docker/Dockerfile
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,19 @@ jobs:
with:
source_branch: main
target_branch: jazzy

docker-publish:
needs: release
if: needs.release.outputs.published == 'true'
permissions:
contents: read
uses: ROBOTIS-GIT/github_workflows/.github/workflows/docker-publish.yml@main
with:
image: robotis/robotis-applications
version: ${{ needs.release.outputs.version }}
checkout_ref: jazzy
context: ./docker
dockerfile: ./docker/Dockerfile
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
Loading