Skip to content

Commit

Permalink
Update cd-production.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDyakonov authored Dec 1, 2024
1 parent 51ff561 commit 7589a86
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/cd-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ on:
jobs:
ci-tests:
uses: ./.github/workflows/ci-tests.yaml
ci-build:
uses: ./.github/workflows/ci-build.yaml

push_to_registry:
name: Push Docker image to Docker Hub
needs: [ci-tests]
needs: [ci-tests, ci-build,]
if: (github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name != '')
runs-on: ubuntu-latest
permissions:
Expand Down Expand Up @@ -42,8 +44,3 @@ jobs:
tags: |
${{ secrets.DOCKER_USERNAME }}/${{ github.event.repository.name }}:latest
${{ secrets.DOCKER_USERNAME }}/${{ github.event.repository.name }}:${{ github.event.inputs.tag_name }}
- name: Trigger watchtower to update container(s)
shell: bash
run: |
curl -H "Authorization: Bearer ${{ secrets.WATCHTOWER_HTTP_API_TOKEN }}" ${{ secrets.WATCHTOWER_UPDATE_ENDPOINT }}

0 comments on commit 7589a86

Please sign in to comment.