1 Commits

Author SHA1 Message Date
7bbf34ad93 Merge workflows
Some checks failed
Y CI / test (push) Successful in 11m41s
Y CI / dependency-submission (push) Failing after 8m23s
Y CI / docker-publish (push) Failing after 2m20s
As otherwise it's kind of useless - theoretically they can depend on each other
but it's somewhat useless, as triggered jobs show up only in "actions" tab
2024-05-01 18:51:09 +02:00

View File

@@ -40,7 +40,6 @@ jobs:
with:
java-version: "17"
distribution: "zulu"
if: env.ACT!='true'
# Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
# See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
@@ -49,7 +48,6 @@ jobs:
with:
# The gradle project is not in the root of the repository.
build-root-directory: server
if: env.ACT!='true'
docker-publish:
runs-on: ubuntu-latest
@@ -70,10 +68,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install docker for ACT runner
run: apt-get update && apt-get install -y sudo docker.io
if: env.ACT=='true'
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@v3.5.0
# Set up BuildKit Docker container builder to be able to build
# multi-platform images and export cache
@@ -81,14 +82,6 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
if: github.event_name != 'pull_request' && env.ACT!='true'
uses: sigstore/cosign-installer@v3.5.0
# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
@@ -127,7 +120,7 @@ jobs:
# transparency data even for private images, pass --force to cosign below.
# https://github.com/sigstore/cosign
- name: Sign the published Docker image
if: ${{ github.event_name != 'pull_request' }} && env.ACT!='true'
if: ${{ github.event_name != 'pull_request' }}
env:
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
TAGS: ${{ steps.meta.outputs.tags }}