Testing workflows seeing how they go
Some checks failed
sample gradle build and test / build (pull_request) Failing after 2m31s
Some checks failed
sample gradle build and test / build (pull_request) Failing after 2m31s
This commit is contained in:
parent
680ef7bd99
commit
71b877cf05
31
.gitea/workflows/test_image_build_push.yml
Normal file
31
.gitea/workflows/test_image_build_push.yml
Normal file
@ -0,0 +1,31 @@
|
||||
name: sample gradle build and test
|
||||
run-name: Build started by $ {{gitea.actor}}
|
||||
on:
|
||||
push:
|
||||
branches: [test]
|
||||
pull_request:
|
||||
branches: [test]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- name: JDK setup
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: '17'
|
||||
- name: Validate Gradle Wrapper
|
||||
uses: gradle/actions/wrapper-validation@v3
|
||||
- name: Log in to Gitea Docker Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: http://192.168.0.100:8928
|
||||
username: ${{gitea.actor}}
|
||||
password: ${{ secrets.ACCESS_TOKEN }}
|
||||
- name: Gradle build
|
||||
run: ./gradlew bootBuildImage --imageName=http://192.168.0.100:8928/cftunnels:latest .
|
||||
- name: Push to Gitea Registry
|
||||
run: docker push http://192.168.0.100:8928/cftunnels:latest
|
||||
Loading…
Reference in New Issue
Block a user