Machinery to sync images to images.linuxcontainers.org/capn/ (#187) #27
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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v[0-9]+.[0-9]+.[0-9]+' | |
| - 'v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+' | |
| jobs: | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # for release | |
| packages: write # for publishing docker images | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Login | |
| run: | | |
| make ko-login USERNAME=${{ github.actor }} PASSWORD=${{ secrets.GITHUB_TOKEN }} | |
| - name: Build image | |
| run: | | |
| make ko-push TAG=${{ github.ref_name }} | |
| - name: Build release assets | |
| run: make dist TAG=${{ github.ref_name }} | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: 'Release ${{ github.ref_name }}' | |
| tag_name: ${{ github.ref_name }} | |
| files: | | |
| dist/infrastructure-components.yaml | |
| dist/metadata.yaml | |
| dist/cluster-template*.yaml | |
| dist/clusterclass-*.yaml | |
| dist/kini-* | |
| generate_release_notes: true | |
| draft: ${{ contains(github.ref_name, 'rc') }} | |
| prerelease: ${{ contains(github.ref_name, 'rc') }} |