Skip to content

Commit

Permalink
fix: github cd action syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmbl committed Nov 10, 2022
1 parent 4d1987b commit b4df82c
Showing 1 changed file with 11 additions and 23 deletions.
34 changes: 11 additions & 23 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,26 +62,14 @@ jobs:
outputs:
image_tag: ${{ steps.get-image-tag.outputs.image_tag }}

# cd_development:
# if: ${{ contains(github.ref, 'heads/main') }}
# needs:
# - docker-image
# uses: ./.github/workflows/cd.yaml
# with:
# environment: development
# service_name: ${{ github.event.repository.name }}
# service_image_tag: ${{ needs.docker-image.outputs.image_tag }}
# secrets:
# api_github_token: ${{ secrets.API_TOKEN_GITHUB }}

cd_production:
if: ${{ contains(github.ref, 'heads/main') }}
needs:
- docker-image
uses: ./.github/workflows/cd.yaml
with:
environment: production
service_name: ${{ github.event.repository.name }}
service_image_tag: ${{ needs.docker-image.outputs.image_tag }}
secrets:
api_github_token: ${{ secrets.API_TOKEN_GITHUB }}
cd_production:
if: ${{ contains(github.ref, 'heads/main') }}
needs:
- docker-image
uses: ./.github/workflows/cd.yaml
with:
environment: production
service_name: ${{ github.event.repository.name }}
service_image_tag: ${{ needs.docker-image.outputs.image_tag }}
secrets:
api_github_token: ${{ secrets.API_TOKEN_GITHUB }}

0 comments on commit b4df82c

Please sign in to comment.