Update worckflow
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m13s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m13s
This commit is contained in:
@@ -70,8 +70,17 @@ jobs:
|
|||||||
SOURCE_URL=${{ gitea.server_url }}/${{ gitea.repository }}
|
SOURCE_URL=${{ gitea.server_url }}/${{ gitea.repository }}
|
||||||
REPO_NAME=${{ gitea.repository }}
|
REPO_NAME=${{ gitea.repository }}
|
||||||
|
|
||||||
|
- name: Connect Docker Image to Gitea Repo
|
||||||
|
run: |
|
||||||
|
curl -X POST \
|
||||||
|
-H "Authorization: token ${{ secrets.TOKEN }}" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-d '{"image": "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest"}' \
|
||||||
|
"${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/docker-image"
|
||||||
|
|
||||||
- name: Generate deployment info
|
- name: Generate deployment info
|
||||||
run: |
|
run: |
|
||||||
echo "Docker image pushed successfully!"
|
echo "Docker image pushed successfully!"
|
||||||
echo "Image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
|
echo "Image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
|
||||||
echo "Tags: ${{ steps.meta.outputs.tags }}"
|
echo "Tags: ${{ steps.meta.outputs.tags }}"
|
||||||
|
echo "Repository linking completed!"
|
||||||
Reference in New Issue
Block a user