forked from Hithomelabs/CFTunnels
Reviewed-on: Hithomelabs/CFTunnels#2 Co-authored-by: hitanshu310 <hitanshu98@gmail.com> Co-committed-by: hitanshu310 <hitanshu98@gmail.com> Reviewed-on: Hithomelabs/CFTunnels#3 Co-authored-by: hitanshu310 <hitanshu98@gmail.com> Co-committed-by: hitanshu310 <hitanshu98@gmail.com>
This commit is contained in:
parent
680ef7bd99
commit
a6c74d4443
34
.gitea/workflows/test_image_build_push.yml
Normal file
34
.gitea/workflows/test_image_build_push.yml
Normal file
@ -0,0 +1,34 @@
|
||||
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
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-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: Check secrets
|
||||
run: echo "my secret is ${{ secrets.TOKEN }}"
|
||||
- name: Log in to Gitea Docker Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: 'http://192.168.0.100:8928'
|
||||
username: hitanshu
|
||||
password: ${{ secrets.TOKEN }}
|
||||
- name: Gradle build
|
||||
run: ./gradlew bootBuildImage --imageName=192.168.0.100:8928/hithomelabs/cftunnels:latest
|
||||
- name: Push to Gitea Registry
|
||||
run: docker push 192.168.0.100:8928/hithomelabs/cftunnels:latest
|
||||
Loading…
Reference in New Issue
Block a user