Add PR template #9
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to Development | ||
|
Check failure on line 1 in .github/workflows/deploy_to_development.yml
|
||
| # Only one workflow in a concurrency group may run at a time | ||
| concurrency: | ||
| group: development-concurrency | ||
| cancel-in-progress: true | ||
| on: | ||
| push: | ||
| branches: | ||
| - "main" | ||
| jobs: | ||
| get-short-sha: | ||
| outputs: | ||
| tag: ${{ steps.get-tag.outputs.tag }} | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - id: get-tag | ||
| run: | | ||
| SHA_SHORT=$(echo ${{ github.sha }} | cut -c1-8) | ||
| echo "tag=$SHA_SHORT" >> "$GITHUB_OUTPUT" | ||
| build-and-push-components: | ||
| name: Build and push containers to ghcr for Development | ||
| needs: [get-short-sha, trigger-github-deployment] | ||
| uses: ./.github/workflows/publish_component.yml | ||
| with: | ||
| Registry: ghcr.io | ||
| ImageName: ${{ github.repository }} | ||
| # Add dev. prefix for the tags used in dev environment, | ||
| # due to the commit hash can be interpreted as an integer if only numbers | ||
| # PS: Needs to match deploy.with.Tag | ||
| Tag: "dev.${{ needs.get-short-sha.outputs.tag }}" | ||
| SecondaryTag: dev | ||
| secrets: | ||
| RegistryUsername: ${{ github.actor }} | ||
| RegistryPassword: ${{ secrets.GITHUB_TOKEN }} | ||
| build-and-push-components: | ||
| name: Build and push containers to acr for Development | ||
| needs: get-short-sha | ||
| uses: ./.github/workflows/publish_component.yml | ||
| with: | ||
| Registry: auroradevacr.azurecr.io | ||
| ImageName: robotics/sara | ||
| Tag: "dev.${{ needs.get-short-sha.outputs.tag }}" | ||
| SecondaryTag: "dev" | ||
| secrets: | ||
| RegistryUsername: ${{ secrets.ROBOTICS_AURORADEVACR_USERNAME }} | ||
| RegistryPassword: ${{ secrets.ROBOTICS_AURORADEVACR_PASSWORD }} | ||
| deploy: | ||
| name: Update deployment in Development | ||
| needs: [build-and-push-components, get-short-sha] | ||
| uses: ./.github/workflows/update_aurora_deployment.yml | ||
| with: | ||
| Environment: development | ||
| Registry: auroradevacr.azurecr.io | ||
| ImageName: robotics/sara | ||
| # Add dev. prefix for the tags used in dev environment, | ||
| # due to the commit hash can be interpreted as an integer if only numbers | ||
| # PS: Needs to match build-and-push-components.with.Tag | ||
| Tag: "dev.${{ needs.get-short-sha.outputs.tag }}" | ||
| AuthorEmail: ${{ github.event.head_commit.author.email }} | ||
| AuthorName: ${{ github.event.head_commit.author.name }} | ||
| secrets: | ||
| DeployKey: ${{ secrets.ANALYTICS_INFRASTRUCTURE_DEPLOY_KEY }} | ||