Skip to content

Commit

Permalink
🔧 Обновление сразу после билда
Browse files Browse the repository at this point in the history
  • Loading branch information
relitrix committed Mar 31, 2024
1 parent 42c3b45 commit ffbc58e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,16 @@ jobs:
run: docker build . --file Dockerfile --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Docker Push
run: docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

deployment:

needs: [build]
runs-on: ubuntu-latest
steps:
- name: Deploy Stage
uses: fjogeleit/http-request-action@v1
with:
url: 'http://${{ vars.HOST }}/v1/update'
method: 'GET'
customHeaders: '{"Authorization": "Bearer ${{ secrets.WATCHTOWER_HTTP_API_TOKEN }}"}'
timeout: 120000

0 comments on commit ffbc58e

Please sign in to comment.