Skip to content

Add MissionListsContext #1

Add MissionListsContext

Add MissionListsContext #1

name: Deploy to Development
# 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:
trigger-github-deployment:
name: Trigger GitHub Deployment
environment: Development
runs-on: ubuntu-latest
steps:
- name: Empty Step
run: echo "Hello World"
get-short-sha:
needs: trigger-github-deployment
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:

Check failure on line 33 in .github/workflows/deploy_to_development.yml

View workflow run for this annotation

GitHub Actions / Deploy to Development

Invalid workflow file

The workflow is not valid. .github/workflows/deploy_to_development.yml (Line: 33, Col: 3): Error calling workflow 'mrica-equinor/flotilla/.github/workflows/publish_component.yml@40022feffa2fbee2b96ef9b849b97e6009de7cb4'. The nested job 'build-and-push-container' is requesting 'packages: write', but is only allowed 'packages: read'.
name: Build and push containers to ghcr for Development
needs: [get-short-sha, trigger-github-deployment]
strategy:
matrix:
component: [broker, backend, frontend]
uses: ./.github/workflows/publish_component.yml
with:
ComponentName: ${{ matrix.component }}
Registry: ghcr.io
ImageName: ${{ github.repository }}
Tag: ${{ needs.get-short-sha.outputs.tag }}
secrets:
RegistryUsername: ${{ github.actor }}
RegistryPassword: ${{ secrets.GITHUB_TOKEN }}
deploy:
name: Update deployment in Development
needs: [build-and-push-components, get-short-sha, trigger-github-deployment]
uses: ./.github/workflows/update_aurora_deployment.yml
with:
Environment: development
Registry: ghcr.io
ImageName: ${{ github.repository }}
Tag: ${{ needs.get-short-sha.outputs.tag }}
AuthorEmail: ${{ github.event.head_commit.author.email }}
AuthorName: ${{ github.event.head_commit.author.name }}
secrets:
DeployKey: ${{ secrets.ROBOTICS_INFRASTRUCTURE_DEPLOY_KEY }}