Skip to content

Build and publish all images to Docker Hub #1033

Build and publish all images to Docker Hub

Build and publish all images to Docker Hub #1033

Workflow file for this run

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 }}" }'