kopia lustrzana https://github.com/mumble-voip/mumble-docker
Merge PR #5: CI: Add trigger for upstream releases
commit
54602c6fe9
|
@ -15,6 +15,9 @@ on:
|
||||||
publish:
|
publish:
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
|
update_latest:
|
||||||
|
required: true
|
||||||
|
type: boolean
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -35,6 +38,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Configure target tags (with latest)
|
||||||
|
if: ${{ inputs.update_latest }}
|
||||||
|
run: echo "TAGS=mumblevoip/mumble-server:latest, mumblevoip/mumble-server:${{ inputs.mumble_version }}, mumblevoip/mumble-server:${{ inputs.mumble_version }}-${{ inputs.docker_version }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Configure target tags (without latest)
|
||||||
|
if: ${{ ! inputs.update_latest }}
|
||||||
|
run: echo "TAGS=mumblevoip/mumble-server:${{ inputs.mumble_version }}, mumblevoip/mumble-server:${{ inputs.mumble_version }}-${{ inputs.docker_version }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
|
@ -44,6 +55,6 @@ jobs:
|
||||||
push: ${{ inputs.publish }}
|
push: ${{ inputs.publish }}
|
||||||
build-args: |
|
build-args: |
|
||||||
MUMBLE_VERSION=${{ inputs.mumble_version }}
|
MUMBLE_VERSION=${{ inputs.mumble_version }}
|
||||||
tags: mumblevoip/mumble-server:latest, mumblevoip/mumble-server:${{ inputs.mumble_version }}, mumblevoip/mumble-server:${{ inputs.mumble_version }}-${{ inputs.docker_version }}
|
tags: ${{ env.TAGS }}
|
||||||
env:
|
env:
|
||||||
MUMBLE_VERSION: ${{ inputs.mumble_version }}
|
MUMBLE_VERSION: ${{ inputs.mumble_version }}
|
||||||
|
|
|
@ -11,6 +11,7 @@ jobs:
|
||||||
mumble_version: "v1.4.230"
|
mumble_version: "v1.4.230"
|
||||||
docker_version: '0'
|
docker_version: '0'
|
||||||
publish: false
|
publish: false
|
||||||
|
update_latest: false
|
||||||
platforms: "linux/amd64"
|
platforms: "linux/amd64"
|
||||||
build_latest:
|
build_latest:
|
||||||
uses: ./.github/workflows/build_and_publish.yml
|
uses: ./.github/workflows/build_and_publish.yml
|
||||||
|
@ -18,4 +19,5 @@ jobs:
|
||||||
mumble_version: "latest"
|
mumble_version: "latest"
|
||||||
docker_version: '0'
|
docker_version: '0'
|
||||||
publish: false
|
publish: false
|
||||||
|
update_latest: true
|
||||||
platforms: "linux/amd64"
|
platforms: "linux/amd64"
|
||||||
|
|
|
@ -15,6 +15,10 @@ on:
|
||||||
description: "Whether the built image(s) shall be published to Dockerhub"
|
description: "Whether the built image(s) shall be published to Dockerhub"
|
||||||
required: true
|
required: true
|
||||||
default: "false"
|
default: "false"
|
||||||
|
update_latest:
|
||||||
|
description: "Whether to update the 'latest' tag on Dockerhub"
|
||||||
|
required: true
|
||||||
|
default: "false"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
manual_dispatch:
|
manual_dispatch:
|
||||||
|
@ -23,5 +27,6 @@ jobs:
|
||||||
mumble_version: ${{ github.event.inputs.mumble_version }}
|
mumble_version: ${{ github.event.inputs.mumble_version }}
|
||||||
docker_version: ${{ github.event.inputs.docker_version }}
|
docker_version: ${{ github.event.inputs.docker_version }}
|
||||||
publish: ${{ github.event.inputs.publish == 'true' }}
|
publish: ${{ github.event.inputs.publish == 'true' }}
|
||||||
|
update_latest: ${{ github.event.inputs.update_latest == 'true' }}
|
||||||
platforms: "linux/amd64"
|
platforms: "linux/amd64"
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
name: Upstream Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
repository_dispatch:
|
||||||
|
types: [ new_release ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish_new_release:
|
||||||
|
uses: ./.github/workflows/build_and_publish.yml
|
||||||
|
with:
|
||||||
|
mumble_version: ${{ github.event.client_payload.tag }}
|
||||||
|
docker_version: '0'
|
||||||
|
publish: true
|
||||||
|
update_latest: ${{ github.event.client_payload.is_latest }}
|
||||||
|
platforms: "linux/amd64"
|
||||||
|
secrets: inherit
|
Ładowanie…
Reference in New Issue