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:
@@ -5,6 +5,8 @@ on:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
tags:
|
||||
- 'v*'
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
@@ -70,17 +72,8 @@ jobs:
|
||||
SOURCE_URL=${{ gitea.server_url }}/${{ 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
|
||||
run: |
|
||||
echo "Docker image pushed successfully!"
|
||||
echo "Image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
|
||||
echo "Tags: ${{ steps.meta.outputs.tags }}"
|
||||
echo "Repository linking completed!"
|
||||
echo "Tags: ${{ steps.meta.outputs.tags }}"
|
||||
Reference in New Issue
Block a user