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