Build and publish all images to Docker Hub #1032
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: Build and publish all images to Docker Hub | |
on: | |
workflow_dispatch: | |
inputs: | |
image_name_prefix: | |
description: "Image Name Prefix" | |
required: true | |
default: "rathena" | |
image_tag: | |
description: "Image TAG" | |
required: true | |
default: "latest" | |
ref: | |
description: "Branch/Tag/Commit reference" | |
required: true | |
default: "master" | |
PACKETVER: | |
description: "PACKETVER" | |
required: true | |
default: "20211103" | |
jobs: | |
build-renewal: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Invoke workflow for renewal | |
uses: benc-uk/workflow-dispatch@v1 | |
with: | |
workflow: Build and publish image to Docker Hub | |
token: ${{ secrets.PERSONAL_TOKEN }} | |
inputs: '{ "image_name": "${{ github.event.inputs.image_name_prefix }}-renewal", "image_tag": "${{ github.event.inputs.image_tag }}", "ref" : "${{ github.event.inputs.ref }}", "prere" : "no", "vip" : "no", "PACKETVER": "${{ github.event.inputs.PACKETVER }}" }' | |
build-prere: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Invoke workflow for prere | |
uses: benc-uk/workflow-dispatch@v1 | |
with: | |
workflow: Build and publish image to Docker Hub | |
token: ${{ secrets.PERSONAL_TOKEN }} | |
inputs: '{ "image_name": "${{ github.event.inputs.image_name_prefix }}-prere", "image_tag": "${{ github.event.inputs.image_tag }}", "ref" : "${{ github.event.inputs.ref }}", "prere" : "yes", "vip" : "no", "PACKETVER": "${{ github.event.inputs.PACKETVER }}" }' | |
build-renewal-vip: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Invoke workflow for renewal-vip | |
uses: benc-uk/workflow-dispatch@v1 | |
with: | |
workflow: Build and publish image to Docker Hub | |
token: ${{ secrets.PERSONAL_TOKEN }} | |
inputs: '{ "image_name": "${{ github.event.inputs.image_name_prefix }}-renewal-vip", "image_tag": "${{ github.event.inputs.image_tag }}", "ref" : "${{ github.event.inputs.ref }}", "prere" : "no", "vip" : "yes", "PACKETVER": "${{ github.event.inputs.PACKETVER }}" }' | |
build-prere-vip: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Invoke workflow for prere-vip | |
uses: benc-uk/workflow-dispatch@v1 | |
with: | |
workflow: Build and publish image to Docker Hub | |
token: ${{ secrets.PERSONAL_TOKEN }} | |
inputs: '{ "image_name": "${{ github.event.inputs.image_name_prefix }}-prere-vip", "image_tag": "${{ github.event.inputs.image_tag }}", "ref" : "${{ github.event.inputs.ref }}", "prere" : "yes", "vip" : "yes", "PACKETVER": "${{ github.event.inputs.PACKETVER }}" }' | |
build-flyway: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Invoke workflow for flyway | |
uses: benc-uk/workflow-dispatch@v1 | |
with: | |
workflow: Build and publish flyway image to Docker Hub | |
token: ${{ secrets.PERSONAL_TOKEN }} | |
inputs: '{ "image_name": "${{ github.event.inputs.image_name_prefix }}-flyway", "image_tag": "${{ github.event.inputs.image_tag }}", "ref" : "${{ github.event.inputs.ref }}" }' | |
build-dev: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Invoke workflow for dev image | |
uses: benc-uk/workflow-dispatch@v1 | |
with: | |
workflow: Build and publish developer image to Docker Hub | |
token: ${{ secrets.PERSONAL_TOKEN }} | |
inputs: '{ "image_name": "${{ github.event.inputs.image_name_prefix }}-dev", "image_tag": "${{ github.event.inputs.image_tag }}", "ref" : "${{ github.event.inputs.ref }}" }' |