mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-12-22 08:48:54 +00:00
chore: merge main actions back to single workflow
Signed-off-by: Steve Hipwell <steve.hipwell@gmail.com>
This commit is contained in:
parent
aea068abed
commit
1580aa2b6f
78
.github/workflows/docker.yml
vendored
78
.github/workflows/docker.yml
vendored
@ -1,78 +0,0 @@
|
|||||||
name: Docker
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_run:
|
|
||||||
workflows:
|
|
||||||
- Main
|
|
||||||
types:
|
|
||||||
- completed
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.event.workflow_run.conclusion == 'success'
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Docker tomcat meta
|
|
||||||
id: docker_meta_tomcat
|
|
||||||
uses: crazy-max/ghaction-docker-meta@v3
|
|
||||||
with:
|
|
||||||
flavor: |
|
|
||||||
latest=false
|
|
||||||
prefix=
|
|
||||||
suffix=
|
|
||||||
images: plantuml/plantuml-server
|
|
||||||
tags: |
|
|
||||||
type=semver,pattern=tomcat-{{raw}}
|
|
||||||
type=raw,value=tomcat
|
|
||||||
|
|
||||||
- name: Docker jetty meta
|
|
||||||
id: docker_meta_jetty
|
|
||||||
uses: crazy-max/ghaction-docker-meta@v3
|
|
||||||
with:
|
|
||||||
flavor: |
|
|
||||||
latest=true
|
|
||||||
prefix=
|
|
||||||
suffix=
|
|
||||||
images: plantuml/plantuml-server
|
|
||||||
tags: |
|
|
||||||
type=semver,pattern={{raw}}
|
|
||||||
type=semver,pattern=jetty-{{raw}}
|
|
||||||
type=raw,value=jetty
|
|
||||||
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v1
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v1
|
|
||||||
|
|
||||||
- name: Login to DockerHub
|
|
||||||
uses: docker/login-action@v1
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Build & push tomcat
|
|
||||||
id: docker_build_tomcat
|
|
||||||
uses: docker/build-push-action@v2
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: ./Dockerfile.tomcat
|
|
||||||
platforms: linux/amd64
|
|
||||||
push: true
|
|
||||||
tags: ${{ steps.docker_meta_tomcat.outputs.tags }}
|
|
||||||
labels: ${{ steps.docker_meta_tomcat.outputs.labels }}
|
|
||||||
|
|
||||||
- name: Build & push jetty
|
|
||||||
id: docker_build_jetty
|
|
||||||
uses: docker/build-push-action@v2
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: ./Dockerfile.jetty
|
|
||||||
platforms: linux/amd64
|
|
||||||
push: true
|
|
||||||
tags: ${{ steps.docker_meta_jetty.outputs.tags }}
|
|
||||||
labels: ${{ steps.docker_meta_jetty.outputs.labels }}
|
|
95
.github/workflows/main.yml
vendored
95
.github/workflows/main.yml
vendored
@ -110,3 +110,98 @@ jobs:
|
|||||||
tag: ${{ github.ref }}
|
tag: ${{ github.ref }}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
file_glob: true
|
file_glob: true
|
||||||
|
|
||||||
|
publish-docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- publish-releases
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Docker tomcat meta
|
||||||
|
id: docker_meta_tomcat
|
||||||
|
uses: crazy-max/ghaction-docker-meta@v3
|
||||||
|
with:
|
||||||
|
flavor: |
|
||||||
|
latest=false
|
||||||
|
prefix=
|
||||||
|
suffix=
|
||||||
|
images: plantuml/plantuml-server
|
||||||
|
tags: |
|
||||||
|
type=semver,pattern=tomcat-{{raw}}
|
||||||
|
type=raw,value=tomcat
|
||||||
|
|
||||||
|
- name: Docker jetty meta
|
||||||
|
id: docker_meta_jetty
|
||||||
|
uses: crazy-max/ghaction-docker-meta@v3
|
||||||
|
with:
|
||||||
|
flavor: |
|
||||||
|
latest=true
|
||||||
|
prefix=
|
||||||
|
suffix=
|
||||||
|
images: plantuml/plantuml-server
|
||||||
|
tags: |
|
||||||
|
type=semver,pattern={{raw}}
|
||||||
|
type=semver,pattern=jetty-{{raw}}
|
||||||
|
type=raw,value=jetty
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
|
- name: Login to DockerHub
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build & push tomcat
|
||||||
|
id: docker_build_tomcat
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile.tomcat
|
||||||
|
platforms: linux/amd64
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.docker_meta_tomcat.outputs.tags }}
|
||||||
|
labels: ${{ steps.docker_meta_tomcat.outputs.labels }}
|
||||||
|
|
||||||
|
- name: Build & push jetty
|
||||||
|
id: docker_build_jetty
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile.jetty
|
||||||
|
platforms: linux/amd64
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.docker_meta_jetty.outputs.tags }}
|
||||||
|
labels: ${{ steps.docker_meta_jetty.outputs.labels }}
|
||||||
|
|
||||||
|
publish-pages:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- publish-releases
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
distribution: "zulu"
|
||||||
|
java-version: 11
|
||||||
|
check-latest: true
|
||||||
|
cache: "maven"
|
||||||
|
|
||||||
|
- name: Create GitHub Pages
|
||||||
|
run: mvn site
|
||||||
|
|
||||||
|
- name: Deploy GitHub Pages
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_dir: ./target/site
|
||||||
|
34
.github/workflows/pages.yml
vendored
34
.github/workflows/pages.yml
vendored
@ -1,34 +0,0 @@
|
|||||||
name: Pages
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
workflow_run:
|
|
||||||
workflows:
|
|
||||||
- Main
|
|
||||||
types:
|
|
||||||
- completed
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
pages:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- uses: actions/setup-java@v2
|
|
||||||
with:
|
|
||||||
distribution: "zulu"
|
|
||||||
java-version: 11
|
|
||||||
check-latest: true
|
|
||||||
cache: "maven"
|
|
||||||
|
|
||||||
- name: Create GitHub Pages
|
|
||||||
run: mvn site
|
|
||||||
|
|
||||||
- name: Deploy GitHub Pages
|
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
publish_dir: ./target/site
|
|
Loading…
Reference in New Issue
Block a user