Fixing docker login
Some checks failed
sample gradle build and test / build (pull_request) Failing after 17s

This commit is contained in:
hitanshu310 2025-05-25 04:10:59 +05:30
parent b3918f8ac0
commit 68a66b3388

View File

@ -9,6 +9,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
@ -20,13 +22,13 @@ jobs:
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Check secrets
run: echo "my secret is ${{ vars.TOKEN }}"
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: ${{ vars.TOKEN }}
password: ${{ secrets.TOKEN }}
- name: Gradle build
run: ./gradlew bootBuildImage --imageName=192.168.0.100:8928/hithomelabs/cftunnels:latest
- name: Push to Gitea Registry