added in gitea actions
All checks were successful
Gitea Actions Demo / build-and-push (push) Successful in 21s
All checks were successful
Gitea Actions Demo / build-and-push (push) Successful in 21s
This commit is contained in:
@@ -24,13 +24,13 @@ jobs:
|
||||
|
||||
- name: Build Docker Image
|
||||
run: |
|
||||
docker build -t gitea-server:3000/ryan/chore:${{ steps.vars.outputs.tag }} .
|
||||
docker build -t 172.26.0.4:3000/ryan/chore:${{ steps.vars.outputs.tag }} .
|
||||
|
||||
- name: Log in to Registry
|
||||
run: |
|
||||
# Use your Gitea credentials (secrets are safer, but this works for testing)
|
||||
echo "0x013h" | docker login gitea-server:3000 -u ryan --password-stdin
|
||||
echo "0x013h" | docker login 172.26.0.4:3000 -u ryan --password-stdin
|
||||
|
||||
- name: Push Image to Gitea Registry
|
||||
run: |
|
||||
docker push gitea-server:3000/ryan/chore:${{ steps.vars.outputs.tag }}
|
||||
docker push 172.26.0.4:3000/ryan/chore:${{ steps.vars.outputs.tag }}
|
||||
Reference in New Issue
Block a user