added in gitea actions
All checks were successful
Gitea Actions Demo / build-and-push (push) Successful in 10s
All checks were successful
Gitea Actions Demo / build-and-push (push) Successful in 10s
This commit is contained in:
@@ -22,16 +22,16 @@ jobs:
|
||||
echo "tag=next" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: Build Docker Image
|
||||
run: |
|
||||
docker build -t gitea-server:3000/ryan/chore:${{ steps.vars.outputs.tag }} .
|
||||
|
||||
- name: Resolve Gitea Server IP
|
||||
id: gitea_ip
|
||||
run: |
|
||||
ip=$(getent hosts gitea-server | awk '{ print $1 }')
|
||||
echo "ip=$ip" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build Docker Image
|
||||
run: |
|
||||
docker build -t ${{ steps.gitea_ip.outputs.ip }}:3000/ryan/chore:${{ steps.vars.outputs.tag }} .
|
||||
|
||||
- name: Log in to Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user