|
72 | 72 | uses: ./.github/actions/setup
|
73 | 73 | with:
|
74 | 74 | os: ${{ matrix.os }}
|
75 |
| - |
| 75 | + |
76 | 76 | - name: Build release bundle
|
77 | 77 | run: |
|
78 | 78 | cargo run -p make-kani-release -- ${{ needs.Release.outputs.version }}
|
|
86 | 86 | asset_path: kani-${{ needs.Release.outputs.version }}-${{ matrix.target }}.tar.gz
|
87 | 87 | asset_name: kani-${{ needs.Release.outputs.version }}-${{ matrix.target }}.tar.gz
|
88 | 88 | asset_content_type: application/gzip
|
| 89 | + |
| 90 | + Package-Docker: |
| 91 | + name: 'Package Docker' |
| 92 | + needs: Release |
| 93 | + runs-on: ubuntu-20.04 |
| 94 | + permissions: |
| 95 | + contents: write |
| 96 | + packages: write |
| 97 | + env: |
| 98 | + os: ubuntu-20.04 |
| 99 | + target: x86_64-unknown-linux-gnu |
| 100 | + steps: |
| 101 | + - name: Checkout code |
| 102 | + uses: actions/checkout@v2 |
| 103 | + |
| 104 | + - name: Setup Kani Dependencies |
| 105 | + uses: ./.github/actions/setup |
| 106 | + with: |
| 107 | + os: ubuntu-20.04 |
| 108 | + |
| 109 | + - name: 'Build release bundle' |
| 110 | + run: | |
| 111 | + cargo run -p make-kani-release -- ${{ needs.Release.outputs.version }} |
| 112 | + cargo package -p kani-verifier |
| 113 | +
|
| 114 | + - name: 'Login to GitHub Container Registry' |
| 115 | + uses: docker/login-action@v2 |
| 116 | + with: |
| 117 | + registry: ghcr.io |
| 118 | + username: ${{ github.repository_owner }} |
| 119 | + password: ${{ secrets.GITHUB_TOKEN }} |
| 120 | + |
| 121 | + - name: 'Set lower case owner name. Needed for docker push.' |
| 122 | + run: | |
| 123 | + echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV} |
| 124 | + env: |
| 125 | + OWNER: '${{ github.repository_owner }}' |
| 126 | + |
| 127 | + - name: Build and push |
| 128 | + uses: docker/build-push-action@v3 |
| 129 | + with: |
| 130 | + context: . |
| 131 | + file: scripts/ci/Dockerfile.bundle-release-20-04 |
| 132 | + push: true |
| 133 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
| 134 | + tags: | |
| 135 | + ghcr.io/${{ env.OWNER_LC }}/kani-${{ env.os }}:${{ needs.Release.outputs.version }} |
| 136 | + ghcr.io/${{ env.OWNER_LC }}/kani-${{ env.os }}:latest |
| 137 | + labels: | |
| 138 | + org.opencontainers.image.source=${{ github.repositoryUrl }} |
| 139 | + org.opencontainers.image.version=${{ needs.Release.outputs.version }} |
| 140 | + org.opencontainers.image.licenses=Apache-2.0 OR MIT |
0 commit comments