added in gitea actions
Some checks failed
Gitea Actions Demo / build-and-push (push) Failing after 8s

This commit is contained in:
2026-01-13 16:03:12 -05:00
parent 3b1e1eae6d
commit 35c4fcb9bb

View File

@@ -10,12 +10,6 @@ jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Resolve Gitea Server IP
run: |
ip=$(getent hosts gitea-server | awk '{ print $1 }')
echo "$ip" > /tmp/gitea_ip.txt
cat /tmp/gitea_ip.txt
- name: Check out repository code
uses: actions/checkout@v3
@@ -36,13 +30,11 @@ jobs:
id: gitea_ip
run: |
ip=$(getent hosts gitea-server | awk '{ print $1 }')
echo "GITEA_IP=$ip" >> $GITHUB_ENV
getent hosts gitea-server | awk '{ print $1 }'
- name: Log in to Registry
uses: docker/login-action@v2
with:
registry: gitea-server:3000 # Replace with your Gitea registry URL
registry: ${{ steps.gitea_ip.outputs.ip }}:3000
username: ryan #${{ secrets.REGISTRY_USERNAME }} # Stored as a Gitea secret
password: 0x013h #${{ secrets.REGISTRY_TOKEN }} # Stored as a Gitea secret (use a PAT here)