Skip to content

Attempt to run workflow without dummy step #221

Attempt to run workflow without dummy step

Attempt to run workflow without dummy step #221

name: Deploy to Development
# Only one workflow in a concurrency group may run at a time
concurrency:
group: development-concurrency
cancel-in-progress: true
permissions:
contents: read
packages: write
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-isar-robot-dev-image-to-ghcr:
name: Build and push isar-robot dev image to github container registry
needs: get-short-sha
uses: equinor/armada/.github/workflows/build_and_publish_docker_image_to_container_registry.yml@main
permissions:
contents: read
packages: write
with:
registry: ghcr.io
image_name: ${{ github.repository }}
tag: "dev.${{ needs.get-short-sha.outputs.tag }}" # PS: Needs to match deploy.with.Tag
secondary_tag: "dev"
path_to_dockerfile: Dockerfile
path_to_context: .
secrets:
registry_password: ${{ secrets.GITHUB_TOKEN }}
registry_username: ${{ github.actor }}
deploy:
name: Update deployment in Development
needs: [build-and-push-isar-robot-dev-image-to-ghcr, get-short-sha]
uses: ./.github/workflows/update_aurora_deployment.yml
with:
Environment: development
Registry: ghcr.io
ImageName: ${{ github.repository }}
Tag: "dev.${{ needs.get-short-sha.outputs.tag }}" # PS: Needs to match build-and-push-components.with.Tag
AuthorEmail: ${{ github.event.head_commit.author.email }}
AuthorName: ${{ github.event.head_commit.author.name }}
secrets:
DeployKey: ${{ secrets.ROBOTICS_INFRASTRUCTURE_DEPLOY_KEY }}