Skip to content

Build CLI and attach to GitHub release #235

Build CLI and attach to GitHub release

Build CLI and attach to GitHub release #235

Workflow file for this run

name: 'Build CLI and attach to GitHub release'
on:
release:
types: [ published ]
workflow_dispatch:
permissions:
contents: read
packages: write
attestations: write
id-token: write
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
jobs:
release:

Check failure on line 20 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build CLI and attach to GitHub release

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 20, Col: 3): Error calling workflow 'cloudposse/.github/.github/workflows/shared-release-branches.yml@main'. The workflow is requesting 'contents: write, pull-requests: write', but is only allowed 'contents: read, pull-requests: none'.
uses: cloudposse/.github/.github/workflows/shared-release-branches.yml@main
secrets: inherit
homebrew:
name: "Bump Homebrew formula"
runs-on: ubuntu-latest
needs: release
steps:
- uses: mislav/bump-homebrew-formula-action@v3
with:
# A PR will be sent to github.com/Homebrew/homebrew-core to update this formula:
formula-name: atmos
formula-path: Formula/a/atmos.rb
env:
COMMITTER_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
docker:
name: "Build and push Docker image for Atmos CLI"
runs-on: ubuntu-latest
steps:
- name: "Checkout source code at current commit"
uses: actions/checkout@v4
- name: "Docker Build"
id: build
uses: cloudposse/github-action-docker-build-push@main
with:
registry: ghcr.io
organization: "${{ github.event.repository.owner.login }}"
repository: "${{ github.event.repository.name }}"
login: "${{ github.actor }}"
password: "${{ secrets.GITHUB_TOKEN }}"
platforms: linux/amd64,linux/arm64
file: Dockerfile
build-args: |
ATMOS_VERSION=${{ github.event.release.tag_name }}
- name: "Verify Image"
run: |
docker pull ${{ steps.build.outputs.image }}:${{ steps.build.outputs.tag}}
- name: "Job Summary"
run: |
echo "## Docker Image Summary" >> $GITHUB_STEP_SUMMARY
echo '```json' >> $GITHUB_STEP_SUMMARY
docker inspect ${{ steps.build.outputs.image }}:${{ steps.build.outputs.tag}} >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY