added in gitea actions
Some checks failed
Gitea Actions Demo / build-and-push (push) Failing after 8s
Some checks failed
Gitea Actions Demo / build-and-push (push) Failing after 8s
This commit is contained in:
@@ -10,12 +10,6 @@ jobs:
|
|||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
@@ -36,13 +30,11 @@ jobs:
|
|||||||
id: gitea_ip
|
id: gitea_ip
|
||||||
run: |
|
run: |
|
||||||
ip=$(getent hosts gitea-server | awk '{ print $1 }')
|
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
|
- name: Log in to Registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
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
|
username: ryan #${{ secrets.REGISTRY_USERNAME }} # Stored as a Gitea secret
|
||||||
password: 0x013h #${{ secrets.REGISTRY_TOKEN }} # Stored as a Gitea secret (use a PAT here)
|
password: 0x013h #${{ secrets.REGISTRY_TOKEN }} # Stored as a Gitea secret (use a PAT here)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user