Skip to content

Commit

Permalink
chore: merge main actions back to single workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Hipwell <[email protected]>
  • Loading branch information
stevehipwell authored and arnaudroques committed Nov 12, 2021
1 parent aea068a commit 1580aa2
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 112 deletions.
78 changes: 0 additions & 78 deletions .github/workflows/docker.yml

This file was deleted.

95 changes: 95 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,98 @@ jobs:
tag: ${{ github.ref }}
overwrite: 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 changes: 0 additions & 34 deletions .github/workflows/pages.yml

This file was deleted.

0 comments on commit 1580aa2

Please sign in to comment.