chore: implement retry mechanism for container publishing in CI workflow
All checks were successful
Caddy Manager CI build / docker (push) Successful in 1m35s
All checks were successful
Caddy Manager CI build / docker (push) Successful in 1m35s
This commit is contained in:
@@ -41,13 +41,18 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sed -i "s/public static readonly string CommitHash = \"\[DEVELOPMENT\]\";/public static readonly string CommitHash = \"${{ steps.metadata.outputs.COMMIT_HASH }}\";/" CaddyManager/Configurations/Application/ApplicationInfo.cs
|
sed -i "s/public static readonly string CommitHash = \"\[DEVELOPMENT\]\";/public static readonly string CommitHash = \"${{ steps.metadata.outputs.COMMIT_HASH }}\";/" CaddyManager/Configurations/Application/ApplicationInfo.cs
|
||||||
- name: Publish container
|
- name: Publish container
|
||||||
run: |
|
uses: nick-fields/retry@v3
|
||||||
|
with:
|
||||||
|
timeout_minutes: 10
|
||||||
|
max_attempts: 3
|
||||||
|
command: |
|
||||||
dotnet publish \
|
dotnet publish \
|
||||||
--configuration Release --os linux --arch x64 \
|
--configuration Release --os linux --arch x64 \
|
||||||
/t:PublishContainer -p ContainerRegistry=${{ vars.DOCKER_GITEA_DOMAIN }} \
|
/t:PublishContainer -p ContainerRegistry=${{ vars.DOCKER_GITEA_DOMAIN }} \
|
||||||
-p ContainerRepository=ebolo/caddy-manager -p:ContainerImageTags='"${{ steps.metadata.outputs.APP_VERSION }};latest"'
|
-p ContainerRepository=ebolo/caddy-manager -p:ContainerImageTags='"${{ steps.metadata.outputs.APP_VERSION }};latest"'
|
||||||
- name: Deploy to Komodo
|
- name: Deploy to Komodo
|
||||||
uses: fjogeleit/http-request-action@v1
|
uses: fjogeleit/http-request-action@v1
|
||||||
|
if: success()
|
||||||
with:
|
with:
|
||||||
url: '${{ vars.WINDMILL_DOMAIN }}/komodo/pull-stack/${{ secrets.KOMODO_STACK_ID }}'
|
url: '${{ vars.WINDMILL_DOMAIN }}/komodo/pull-stack/${{ secrets.KOMODO_STACK_ID }}'
|
||||||
method: 'PUT'
|
method: 'PUT'
|
||||||
|
|||||||
Reference in New Issue
Block a user