All checks were successful
Build Gradle Dragonwell Image / build (push) Successful in 5s
40 lines
939 B
YAML
40 lines
939 B
YAML
name: Build Gradle Dragonwell Image
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '.gitea/workflows/build-image.yml'
|
|
- 'Dockerfile'
|
|
- 'config/**'
|
|
workflow_dispatch:
|
|
inputs:
|
|
gradle_version:
|
|
description: 'Gradle版本'
|
|
required: true
|
|
default: '8.13'
|
|
type: string
|
|
|
|
env:
|
|
REGISTRY: git.crash.work
|
|
IMAGE_NAME: gradle-dragonwell
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: self_website
|
|
|
|
steps:
|
|
- name: Test token with wget
|
|
run: |
|
|
echo "Testing token authentication..."
|
|
wget -q --header="Authorization: token ${{ secrets.TOKEN }}" \
|
|
--spider https://git.crash.work/api/v1/user || echo "wget test failed"
|
|
|
|
- name: Test git access
|
|
run: |
|
|
echo "Testing git clone with token..."
|
|
git clone https://${{ secrets.TOKEN }}@git.crash.work/herryyun/checkout.git /tmp/test-checkout
|
|
ls -la /tmp/test-checkout
|
|
env:
|
|
GIT_TERMINAL_PROMPT: 0
|
|
|