Skip to content

chore: Comment image promotion #17

chore: Comment image promotion

chore: Comment image promotion #17

Workflow file for this run

# CD pipeline for staging environment runs when PR gets merged with main branch
name: CD pipeline for staging environment
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy-to-stg:
uses: ./.github/workflows/cd-base.yml

Check failure on line 14 in .github/workflows/cd-stg.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cd-stg.yml

Invalid workflow file

error parsing called workflow ".github/workflows/cd-stg.yml" -> "./.github/workflows/cd-base.yml" (source branch with sha:a407310d01d98233814d30796b93c8cde9a56a92) : (Line: 12, Col: 17): Unexpected value '', (Line: 13, Col: 12): Unexpected value 'ubuntu-latest', (Line: 15, Col: 7): Unexpected value 'dockerhub_image', (Line: 15, Col: 7): There's not enough info to determine what you meant. Add one of these properties: cancel-timeout-minutes, container, continue-on-error, defaults, env, environment, outputs, runs-on, secrets, services, snapshot, steps, timeout-minutes, uses, with, (Line: 18, Col: 5): A sequence was not expected
secrets: inherit # pragma: allowlist secret
with:
deployment_env: stg
image_uri: ghcr.io/${{ github.repository_owner }}/register-ticket-api:${{ github.sha }}
#promote-to-stg-passed:
#needs: deploy-to-stg
#runs-on: ubunt-latest
#permissions:
#packages: write
#steps:
#- name: Log in Github container registry
#uses: docker/login-action@v3
#with:
#registry: ghcr.io
#username: ${{ github.actor }}
#password: ${{ secrets.GITHUB_TOKEN }}
#- name: Tag as stg-passed
#run: |
#docker pull ghcr.io/${{ github.repository_owner }}/register-ticket-api:${{ github.sha }}
#docker tag ghcr.io/${{ github.repository_owner }}/register-ticket-api:${{ github.sha }} \
#ghcr.io/${{ github.repository_owner }}/register-ticket-api:stg-passed
#docker push ghcr.io/${{ github.repository_owner }}/register-ticket-api:stg-passed