Skip to content

v1.111.0

v1.111.0 #276

Workflow file for this run

name: 'Build CLI and attach to GitHub release'
on:
release:
types: [ published ]
workflow_dispatch:
permissions:
attestations: write
contents: write
id-token: write
pull-requests: write
packages: write
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
jobs:
release:
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
needs: release
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